diff --git a/CMakeLists.txt b/CMakeLists.txt index 2f630ba14..993cb8fcb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -190,9 +190,9 @@ if (USE_SYSTEM_QXT) # We only need its header. We don't need to link to QxtCore. find_library(QXT_LIBRARIES QxtGui) else (USE_SYSTEM_QXT) + add_definitions(-DQXT_STATIC -DBUILD_QXT_GUI -DBUILD_QXT_CORE) if (NOT APPLE) add_subdirectory(3rdparty/qxt) - add_definitions(-DQXT_STATIC -DBUILD_QXT_GUI -DBUILD_QXT_CORE) set(QXT_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/qxt) set(QXT_LIBRARIES qxt) endif (NOT APPLE)