diff options
author | click <none@none> | 2010-09-18 18:47:49 +0200 |
---|---|---|
committer | click <none@none> | 2010-09-18 18:47:49 +0200 |
commit | b93cca2a8dfa1f4c16c29e3c66e8ba65da409e27 (patch) | |
tree | fe669212626f95ec76a9a98b3f1cac18142bc3df | |
parent | ae13e7354ae48758bb4f7d1da58665d6681c7ddb (diff) |
Buildsystem: Don't build gsoap/sockets libraries unless building servers. Fixes issue 4049.
--HG--
branch : trunk
-rw-r--r-- | dep/CMakeLists.txt | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/dep/CMakeLists.txt b/dep/CMakeLists.txt index cc9be84a809..2ebca2bf023 100644 --- a/dep/CMakeLists.txt +++ b/dep/CMakeLists.txt @@ -15,22 +15,29 @@ elseif( MSVC ) endif() if(CMAKE_SYSTEM_NAME MATCHES "Linux") - add_subdirectory(jemalloc) - set(JEMALLOC_LIB "jemalloc") + if(SERVER) + add_subdirectory(jemalloc) + set(JEMALLOC_LIB "jemalloc") + endif() endif() if(CMAKE_SYSTEM_NAME MATCHES "Windows") - add_subdirectory(acelite) - add_subdirectory(zlib) + if(SERVER) + add_subdirectory(acelite) + if(USE_MYSQL_SOURCES) + add_subdirectory(mysqllite) + endif() + endif() add_subdirectory(bzip2) - if(USE_MYSQL_SOURCES) - add_subdirectory(mysqllite) - endif(USE_MYSQL_SOURCES) + add_subdirectory(zlib) endif() add_subdirectory(g3dlite) -add_subdirectory(sockets) -add_subdirectory(gsoap) + +if(SERVER) + add_subdirectory(sockets) + add_subdirectory(gsoap) +endif() if(TOOLS) add_subdirectory(libmpq) |