Cut away DO_*-parts from buildsystem and specific files checking for it.

--HG--
branch : trunk
This commit is contained in:
click
2010-07-27 05:40:21 +02:00
parent 2b9275424e
commit bfc6dec072
10 changed files with 64 additions and 65 deletions

View File

@@ -17,7 +17,7 @@ file(GLOB_RECURSE scripts_spells Spells/*.cpp)
file(GLOB_RECURSE scripts_examples Examples/*.cpp)
# Enable precompiled headers when using the GCC compiler.
if(DO_PCH)
if(PCH)
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
)
@@ -135,7 +135,7 @@ endif()
add_library(scripts STATIC ${scripts_STAT_SRCS})
# Generate precompiled header
if(DO_PCH)
if(PCH)
if(CMAKE_COMPILER_IS_GNUCXX)
add_precompiled_header(scripts ${CMAKE_SOURCE_DIR}/src/server/game/PrecompiledHeaders/ScriptPCH.h)
elseif(MSVC)