Buildsystem: Update CMakeLists to use the proper check, not the old one...
--HG-- branch : trunk
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user