[cmake-commits] king committed CMakeDetermineCompilerId.cmake 1.1.2.2
1.1.2.3
cmake-commits at cmake.org
cmake-commits at cmake.org
Fri Apr 27 10:29:59 EDT 2007
Update of /cvsroot/CMake/CMake/Modules
In directory public:/mounts/ram/cvs-serv31481
Modified Files:
Tag: CMake-Modules-CompilerId
CMakeDetermineCompilerId.cmake
Log Message:
BUG: When passing the compiler id source file to the compiler, the native file path format should be used on the command line.
Index: CMakeDetermineCompilerId.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/Attic/CMakeDetermineCompilerId.cmake,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -u -d -r1.1.2.2 -r1.1.2.3
--- CMakeDetermineCompilerId.cmake 27 Apr 2007 13:20:34 -0000 1.1.2.2
+++ CMakeDetermineCompilerId.cmake 27 Apr 2007 14:29:57 -0000 1.1.2.3
@@ -4,6 +4,13 @@
MACRO(CMAKE_DETERMINE_COMPILER_ID lang src)
# Store the compiler identification source file.
SET(CMAKE_${lang}_COMPILER_ID_SRC "${src}")
+ IF(WIN32 AND NOT CYGWIN)
+ # This seems to escape spaces:
+ #FILE(TO_NATIVE_PATH "${CMAKE_${lang}_COMPILER_ID_SRC}"
+ # CMAKE_${lang}_COMPILER_ID_SRC)
+ STRING(REGEX REPLACE "/" "\\\\" CMAKE_${lang}_COMPILER_ID_SRC
+ "${CMAKE_${lang}_COMPILER_ID_SRC}")
+ ENDIF(WIN32 AND NOT CYGWIN)
# Make sure user-specified compiler flags are used.
IF(CMAKE_${lang}_FLAGS)
More information about the Cmake-commits
mailing list