aboutsummaryrefslogtreecommitdiff
path: root/cmake/FindPCHSupport.cmake
diff options
context:
space:
mode:
authorShauren <none@none>2010-06-30 13:10:13 +0200
committerShauren <none@none>2010-06-30 13:10:13 +0200
commit2ea043484d3efadf955c30d1d7fb10894ee465b7 (patch)
tree07437eb5803a509d8f9391b2d351b6ec0bd7320a /cmake/FindPCHSupport.cmake
parentb0d5071598a7a3bd329f1f107725c1d56d100e1e (diff)
It is now possible to use CMake on windows for proper build (PCH support included)
Merged PCH header into gamePCH since they became the same after these changes --HG-- branch : trunk rename : src/server/game/PrecompiledHeaders/NixCorePCH.cpp => src/server/game/PrecompiledHeaders/gamePCH.cpp rename : src/server/game/PrecompiledHeaders/NixCorePCH.h => src/server/game/PrecompiledHeaders/gamePCH.h
Diffstat (limited to 'cmake/FindPCHSupport.cmake')
-rw-r--r--cmake/FindPCHSupport.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/FindPCHSupport.cmake b/cmake/FindPCHSupport.cmake
index 4874808a0f9..d96a287e1a3 100644
--- a/cmake/FindPCHSupport.cmake
+++ b/cmake/FindPCHSupport.cmake
@@ -281,11 +281,11 @@ MACRO(ADD_NATIVE_PRECOMPILED_HEADER _targetName _input)
SET(oldProps "")
endif(${oldProps} MATCHES NOTFOUND)
- SET(newProperties "${oldProps} /Yu\"${_input}\" /FI\"${_input}\"")
+ SET(newProperties "${oldProps} /Yu\"${_input}.h\" /FI\"${_input}.h\"")
SET_TARGET_PROPERTIES(${_targetName} PROPERTIES COMPILE_FLAGS "${newProperties}")
#also inlude ${oldProps} to have the same compile options
- SET_SOURCE_FILES_PROPERTIES(${${_targetName}_pch} PROPERTIES COMPILE_FLAGS "${oldProps} /Yc\"${_input}\"")
+ SET_SOURCE_FILES_PROPERTIES(${_input}.cpp PROPERTIES COMPILE_FLAGS "${oldProps} /Yc\"${_input}.h\"")
else(CMAKE_GENERATOR MATCHES Visual*)