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()
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user