aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts
diff options
context:
space:
mode:
authorclick <none@none>2010-08-28 19:24:50 +0200
committerclick <none@none>2010-08-28 19:24:50 +0200
commit2930c02198306cc7c2073c11329251835d05924a (patch)
tree8499650dd32104110e91ecca5afaf3dc8f26b84b /src/server/scripts
parentdcaeceaf6b3e4cfe16d5c5fbad7473dfb14ba4dd (diff)
Buildsystem: Update CMakeLists to use the proper check, not the old one...
--HG-- branch : trunk
Diffstat (limited to 'src/server/scripts')
-rw-r--r--src/server/scripts/CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/scripts/CMakeLists.txt b/src/server/scripts/CMakeLists.txt
index 680591c00e8..30c8f859f58 100644
--- a/src/server/scripts/CMakeLists.txt
+++ b/src/server/scripts/CMakeLists.txt
@@ -18,13 +18,13 @@ file(GLOB_RECURSE scripts_examples Examples/*.cpp Examples/*.h)
file(GLOB_RECURSE scripts_outdoorpvp OutdoorPvP/*.cpp OutdoorPvP/*.h)
# Enable precompiled headers when using the GCC compiler.
-if( SCRIPTPCH )
+if( USE_SCRIPTPCH )
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
)
endif()
-if( SCRIPTPCH AND MSVC )
+if( USE_SCRIPTPCH AND MSVC )
set(scripts_STAT_SRCS
PrecompiledHeaders/ScriptPCH.cpp
PrecompiledHeaders/ScriptPCH.h
@@ -145,7 +145,7 @@ add_library(scripts STATIC ${scripts_STAT_SRCS})
add_dependencies(scripts genrev)
# Generate precompiled header
-if( SCRIPTPCH )
+if( USE_SCRIPTPCH )
if(CMAKE_COMPILER_IS_GNUCXX)
add_precompiled_header(scripts ${CMAKE_CURRENT_SOURCE_DIR}/PrecompiledHeaders/ScriptPCH.h)
elseif(MSVC)