diff --git a/CMakeLists.txt b/CMakeLists.txt index eb153c4..8b8de00 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -67,7 +67,7 @@ if(BUILD_STATIC) target_compile_definitions(qtadvanceddocking PUBLIC ADS_STATIC) else() add_library(qtadvanceddocking SHARED ${ads_SRCS}) - target_compile_definitions(qtadvanceddocking PUBLIC ADS_SHARED_EXPORT) + set(ads_COMPILE_DEFINE ${ads_COMPILE_DEFINE} ADS_SHARED_EXPORT) endif() install(FILES ${ads_INSTALL_INCLUDE} DESTINATION include