diff options
author | Jörg Mayer <jmayer@loplof.de> | 2009-11-17 11:58:36 +0000 |
---|---|---|
committer | Jörg Mayer <jmayer@loplof.de> | 2009-11-17 11:58:36 +0000 |
commit | d2cc318f4fc184a3de6038d1492896ec6bfb5f79 (patch) | |
tree | c635034c45104971ecf947a800fa3815dc2671a2 /wsutil | |
parent | 9c06ca976e94c1a89fbc28fa3930966b395ff07c (diff) |
Beginnings of enabling static builds. Still to do:
* Add -static
* Registration may need different handling
* Add plugins
* Build error in wslua
svn path=/trunk/; revision=30987
Diffstat (limited to 'wsutil')
-rw-r--r-- | wsutil/CMakeLists.txt | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/wsutil/CMakeLists.txt b/wsutil/CMakeLists.txt index a662ef277b..81b9eceace 100644 --- a/wsutil/CMakeLists.txt +++ b/wsutil/CMakeLists.txt @@ -40,13 +40,17 @@ set(wsutil_LIBS ${GLIB2_LIBRARIES} ) -add_library(wsutil SHARED +add_library(wsutil ${LINK_MODE_LIB} ${WSUTIL_FILES} ) target_link_libraries(wsutil ${wsutil_LIBS}) -install(TARGETS wsutil - LIBRARY DESTINATION lib - RUNTIME DESTINATION lib - ARCHIVE DESTINATION lib) +if(NOT ${ENABLE_STATIC}) + install(TARGETS wsutil + LIBRARY DESTINATION lib + RUNTIME DESTINATION lib + ARCHIVE DESTINATION lib + ) +endif() + |