Buildsystem: Update CMakeLists to use the proper check, not the old one...

--HG--
branch : trunk
This commit is contained in:
click
2010-08-28 19:24:50 +02:00
parent dcaeceaf6b
commit 2930c02198
7 changed files with 20 additions and 20 deletions
+3 -3
View File
@@ -8,7 +8,7 @@
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
if( GAMEPCH )
if( USE_COREPCH )
include_directories(${CMAKE_CURRENT_BINARY_DIR})
endif()
@@ -50,7 +50,7 @@ file(GLOB_RECURSE sources_World World/*.cpp World/*.h)
# Create game-libary
if( GAMEPCH AND MSVC )
if( USE_COREPCH AND MSVC )
set(game_STAT_SRCS
PrecompiledHeaders/gamePCH.cpp
PrecompiledHeaders/gamePCH.h
@@ -194,7 +194,7 @@ add_library(game STATIC ${game_STAT_SRCS})
add_dependencies(game genrev)
# Generate precompiled header
if( GAMEPCH )
if( USE_COREPCH )
if(CMAKE_COMPILER_IS_GNUCXX)
add_precompiled_header(game ${CMAKE_CURRENT_SOURCE_DIR}/PrecompiledHeaders/gamePCH.h)
elseif(MSVC)