[cmake-commits] king committed CMakeDetermineCCompiler.cmake 1.50 1.51 CMakeDetermineCXXCompiler.cmake 1.43 1.44 CMakeDetermineFortranCompiler.cmake 1.21 1.22

cmake-commits at cmake.org cmake-commits at cmake.org
Mon Feb 11 17:00:56 EST 2008


Update of /cvsroot/CMake/CMake/Modules
In directory public:/mounts/ram/cvs-serv29515/Modules

Modified Files:
	CMakeDetermineCCompiler.cmake CMakeDetermineCXXCompiler.cmake 
	CMakeDetermineFortranCompiler.cmake 
Log Message:
ENH: When detecting the compiler id try compiling only to an object file.


Index: CMakeDetermineFortranCompiler.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/CMakeDetermineFortranCompiler.cmake,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- CMakeDetermineFortranCompiler.cmake	4 Feb 2008 15:04:23 -0000	1.21
+++ CMakeDetermineFortranCompiler.cmake	11 Feb 2008 22:00:54 -0000	1.22
@@ -84,6 +84,9 @@
   # adding to the compile line to see if it helps produce
   # a valid identification executable.
   SET(CMAKE_Fortran_COMPILER_ID_TEST_FLAGS
+    # Try compiling to an object file only.
+    "-c"
+
     # Intel on windows does not preprocess by default.
     "-fpp"
     )

Index: CMakeDetermineCXXCompiler.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/CMakeDetermineCXXCompiler.cmake,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- CMakeDetermineCXXCompiler.cmake	4 Feb 2008 15:04:23 -0000	1.43
+++ CMakeDetermineCXXCompiler.cmake	11 Feb 2008 22:00:54 -0000	1.44
@@ -122,6 +122,14 @@
 IF(NOT CMAKE_CXX_COMPILER_ID_RUN)
   SET(CMAKE_CXX_COMPILER_ID_RUN 1)
 
+  # Each entry in this list is a set of extra flags to try
+  # adding to the compile line to see if it helps produce
+  # a valid identification file.
+  SET(CMAKE_CXX_COMPILER_ID_TEST_FLAGS
+    # Try compiling to an object file only.
+    "-c"
+    )
+
   # Try to identify the compiler.
   SET(CMAKE_CXX_COMPILER_ID)
   INCLUDE(${CMAKE_ROOT}/Modules/CMakeDetermineCompilerId.cmake)

Index: CMakeDetermineCCompiler.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/CMakeDetermineCCompiler.cmake,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -d -r1.50 -r1.51
--- CMakeDetermineCCompiler.cmake	4 Feb 2008 15:04:23 -0000	1.50
+++ CMakeDetermineCCompiler.cmake	11 Feb 2008 22:00:54 -0000	1.51
@@ -112,6 +112,14 @@
 IF(NOT CMAKE_C_COMPILER_ID_RUN)
   SET(CMAKE_C_COMPILER_ID_RUN 1)
 
+  # Each entry in this list is a set of extra flags to try
+  # adding to the compile line to see if it helps produce
+  # a valid identification file.
+  SET(CMAKE_C_COMPILER_ID_TEST_FLAGS
+    # Try compiling to an object file only.
+    "-c"
+    )
+
   # Try to identify the compiler.
   SET(CMAKE_C_COMPILER_ID)
   INCLUDE(${CMAKE_ROOT}/Modules/CMakeDetermineCompilerId.cmake)



More information about the Cmake-commits mailing list