diff options
-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) |