diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 1407080..44fa392 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -47,7 +47,9 @@ set_target_properties(ccd PROPERTIES target_include_directories(ccd PUBLIC $ $) - +if(NOT BUILD_SHARED_LIBS) + target_compile_definitions(ccd PUBLIC CCD_STATIC_DEFINE) +endif() if(NOT WIN32) find_library(LIBM_LIBRARY NAMES m) if(NOT LIBM_LIBRARY)