[crisscross commit] r866 - trunk

0 views
Skip to first unread message

codesite...@google.com

unread,
Oct 15, 2008, 8:16:27 PM10/15/08
to crisscr...@googlegroups.com
Author: steven.noonan
Date: Wed Oct 15 17:15:47 2008
New Revision: 866

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)

Reply all
Reply to author
Forward
0 new messages