From 6e9d7486fe84f899fe24bfa3e47d71eae7947110 Mon Sep 17 00:00:00 2001 From: DDuarte Date: Sun, 3 Aug 2014 18:12:04 +0100 Subject: [PATCH] Build/CMake: Compile the minimum of dependencies possible mysql if SERVERS, zlib, g3d and recast if SERVERS or TOOLS --- dep/CMakeLists.txt | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/dep/CMakeLists.txt b/dep/CMakeLists.txt index 3b3be7e1551..ae1044969e0 100644 --- a/dep/CMakeLists.txt +++ b/dep/CMakeLists.txt @@ -21,17 +21,21 @@ if(CMAKE_SYSTEM_NAME MATCHES "Linux") endif() if(CMAKE_SYSTEM_NAME MATCHES "Windows") - if(USE_MYSQL_SOURCES) + if(USE_MYSQL_SOURCES AND SERVERS) add_subdirectory(mysqllite) endif() if(TOOLS) add_subdirectory(bzip2) endif() - add_subdirectory(zlib) + if(SERVERS OR TOOLS) + add_subdirectory(zlib) + endif() endif() -add_subdirectory(g3dlite) -add_subdirectory(recastnavigation) +if(SERVERS OR TOOLS) + add_subdirectory(g3dlite) + add_subdirectory(recastnavigation) +endif() if(SERVERS) add_subdirectory(gsoap)