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()
@@ -17,7 +17,7 @@ file(GLOB_RECURSE sources_Maps Maps/*.cpp Maps/*.h)
file(GLOB_RECURSE sources_Models Models/*.cpp Models/*.h)
file(GLOB sources_localdir *.cpp *.h)
if( GAMEPCH AND MSVC )
if( USE_COREPCH AND MSVC )
set(collision_STAT_SRCS
PrecompiledHeaders/collisionPCH.cpp
PrecompiledHeaders/collisionPCH.h
@@ -54,7 +54,7 @@ include_directories(
add_library(collision STATIC ${collision_STAT_SRCS})
# Generate precompiled header
if( GAMEPCH )
if( USE_COREPCH )
if(CMAKE_COMPILER_IS_GNUCXX)
add_precompiled_header(collision ${CMAKE_CURRENT_SOURCE_DIR}/PrecompiledHeaders/collisionPCH.h)
elseif(MSVC)