From 6db3cafdcebe49e465c49a1dbfa276d4bddf27be Mon Sep 17 00:00:00 2001 From: Sergey Yagovtsev Date: Sun, 5 Nov 2017 12:27:43 +0300 Subject: [PATCH] fix #76 --- easy_profiler_core/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easy_profiler_core/CMakeLists.txt b/easy_profiler_core/CMakeLists.txt index 12b3032..4b87e79 100644 --- a/easy_profiler_core/CMakeLists.txt +++ b/easy_profiler_core/CMakeLists.txt @@ -161,7 +161,7 @@ target_compile_definitions(easy_profiler PRIVATE -D_BUILD_PROFILER=1 #-DEASY_PROFILER_API_DISABLED # uncomment this to disable profiler api only (you will have to rebuild only easy_profiler) ) -if (EASY_OPTION_LIB_STATIC) +if (NOT BUILD_SHARED_LIBS) target_compile_definitions(easy_profiler PUBLIC -DEASY_PROFILER_STATIC=1) endif () target_compile_definitions(easy_profiler PUBLIC