From 5f15aa477e7ebb6ab65badefd4a63acb5a752465 Mon Sep 17 00:00:00 2001 From: Dominik Schmidt Date: Wed, 2 May 2012 01:55:31 +0200 Subject: [PATCH] win: fix building statically --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a5c553b..e94fd7b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -33,7 +33,8 @@ endif() if(NOT QTKEYCHAIN_STATIC) add_library(qtkeychain SHARED ${qtkeychain_SOURCES}) set_target_properties(qtkeychain PROPERTIES COMPILE_DEFINITIONS QKEYCHAIN_BUILD_QKEYCHAIN_LIB) - target_link_libraries(qtkeychain ${qtkeychain_LIBRARIES} ) + target_link_libraries(qtkeychain ${qtkeychain_LIBRARIES}) else() add_library(qtkeychain STATIC ${qtkeychain_SOURCES}) -endif() \ No newline at end of file + set_target_properties(qtkeychain PROPERTIES COMPILE_DEFINITIONS QKEYCHAIN_STATICLIB) +endif()