From 5d9a8e2d0617db1e82c1255bbe5cb44ac6507fe4 Mon Sep 17 00:00:00 2001 From: kervala Date: Sat, 17 Jul 2010 23:04:22 +0200 Subject: [PATCH] Changed: #842 Added FINAL_VERSION for NeL --- code/nel/CMakeLists.txt | 4 ++++ code/nel/CMakeModules/nel.cmake | 7 ++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/code/nel/CMakeLists.txt b/code/nel/CMakeLists.txt index 10b987724..ff075e315 100644 --- a/code/nel/CMakeLists.txt +++ b/code/nel/CMakeLists.txt @@ -185,6 +185,10 @@ NL_SETUP_BUILD_FLAGS() INCLUDE(${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules/PCHSupport.cmake) +IF(FINAL_VERSION) + ADD_DEFINITIONS(-DFINAL_VERSION=1) +ENDIF(FINAL_VERSION) + ADD_SUBDIRECTORY(src) ADD_SUBDIRECTORY(include) diff --git a/code/nel/CMakeModules/nel.cmake b/code/nel/CMakeModules/nel.cmake index d3664cd15..4a3720618 100644 --- a/code/nel/CMakeModules/nel.cmake +++ b/code/nel/CMakeModules/nel.cmake @@ -91,15 +91,16 @@ MACRO(NL_SETUP_DEFAULT_OPTIONS) OPTION(WITH_LOGGING "With Logging" ON ) OPTION(WITH_COVERAGE "With Code Coverage Support" OFF) OPTION(WITH_PCH "With Precompiled Headers" ON ) - + OPTION(FINAL_VERSION "Build in Final Version mode" ON ) + # Default to static building on Windows. IF(WIN32) OPTION(WITH_STATIC "With static libraries." ON ) ELSE(WIN32) OPTION(WITH_STATIC "With static libraries." OFF) ENDIF(WIN32) - OPTION(WITH_STATIC_DRIVERS "With static drivers." OFF) - + OPTION(WITH_STATIC_DRIVERS "With static drivers." OFF) + ### # Core libraries ###