From a751e7ba146eee3694169b8087306c93732689e6 Mon Sep 17 00:00:00 2001 From: flaviojs Date: Fri, 22 Jul 2011 14:54:37 +0000 Subject: * CMake: Added options BUILD_TXT_SERVERS, BUILD_SQL_SERVERS, BUILD_MAPCACHE. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14921 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/tool/CMakeLists.txt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/tool') diff --git a/src/tool/CMakeLists.txt b/src/tool/CMakeLists.txt index 4dc500fc7..55ea2d267 100644 --- a/src/tool/CMakeLists.txt +++ b/src/tool/CMakeLists.txt @@ -3,6 +3,11 @@ # mapcache # if( WITH_ZLIB ) + option( BUILD_MAPCACHE "build mapcache executable" ON ) +else() + message( STATUS "Disabled mapcache target (required ZLIB)" ) +endif() +if( BUILD_MAPCACHE ) message( STATUS "Creating target mapcache" ) set( COMMON_HEADERS ${COMMON_MINI_HEADERS} @@ -35,7 +40,4 @@ if( INSTALL_COMPONENT_RUNTIME ) endif( INSTALL_COMPONENT_RUNTIME ) set( TARGET_LIST ${TARGET_LIST} mapcache CACHE INTERNAL "" ) message( STATUS "Creating target mapcache - done" ) -else() -message( STATUS "Skipping target mapcache (requires ZLIB)" ) -unset( HAVE_mapcache CACHE ) -endif() +endif( BUILD_MAPCACHE ) -- cgit v1.2.3-60-g2f50