From d20e3ce5986babacf36c313f8c694366eadd0a76 Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Wed, 18 Jun 2014 18:42:01 +0200 Subject: [PATCH] Add DLLEXPORT_PRO definitions. --- src/calamares/CMakeLists.txt | 2 ++ src/libcalamares/CMakeLists.txt | 1 + 2 files changed, 3 insertions(+) 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 )