diff --git a/src/calamares/CMakeLists.txt b/src/calamares/CMakeLists.txt index d8da1be35..11292283e 100644 --- a/src/calamares/CMakeLists.txt +++ b/src/calamares/CMakeLists.txt @@ -1,5 +1,7 @@ project( calamares ) +add_definitions( -DUIDLLEXPORT_PRO ) + if( NOT CMAKE_BUILD_TYPE STREQUAL "Release" ) message( "Building in debug mode, enabling all debug updates" ) endif() diff --git a/src/libcalamares/CMakeLists.txt b/src/libcalamares/CMakeLists.txt index d99654229..6af3edadf 100644 --- a/src/libcalamares/CMakeLists.txt +++ b/src/libcalamares/CMakeLists.txt @@ -3,6 +3,7 @@ project( calamareslib ) add_definitions( ${QT_DEFINITIONS} ) add_definitions( -DQT_SHARED ) add_definitions( -DQT_SHAREDPOINTER_TRACK_POINTERS ) +add_definitions( -DDLLEXPORT_PRO ) configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/../calamares/Config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h )