Modified:
trunk/CMakeLists.txt
Log:
Definite fix for precompiled headers. Why the hell didn't it occur to me
to try and fix this on a Windows machine instead of committing it on a
Mac and only TESTING on a Windows machine?
Modified: trunk/CMakeLists.txt
==============================================================================
--- trunk/CMakeLists.txt (original)
+++ trunk/CMakeLists.txt Wed Oct 15 17:15:47 2008
@@ -34,7 +34,9 @@
STRING(REPLACE "${CMAKE_CURRENT_SOURCE_DIR}/" "" _headerName "${_header}")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /Yu\"${_headerName}\"")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Yu\"${_headerName}\"")
- set_source_files_properties(_source
+ GET_FILENAME_COMPONENT(_sourceFile ${_source} NAME)
+ MESSAGE(STATUS "${_sourceFile}")
+ set_source_files_properties("${_sourceFile}"
COMPILE_FLAGS "/Yc\"${_headerName}\""
)
ENDIF(MSVC)