[cmake-commits] king committed CMakeDetermineCCompiler.cmake 1.38.2.2 1.38.2.3 CMakeDetermineCXXCompiler.cmake 1.33.2.2 1.33.2.3

cmake-commits at cmake.org cmake-commits at cmake.org
Fri Apr 27 10:44:39 EDT 2007


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

Modified Files:
      Tag: CMake-Modules-CompilerId
	CMakeDetermineCCompiler.cmake CMakeDetermineCXXCompiler.cmake 
Log Message:
ENH: Hard-coded platform for Visual Studio generators.  Added TODO comment about setting the compiler id.


Index: CMakeDetermineCXXCompiler.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/CMakeDetermineCXXCompiler.cmake,v
retrieving revision 1.33.2.2
retrieving revision 1.33.2.3
diff -u -d -r1.33.2.2 -r1.33.2.3
--- CMakeDetermineCXXCompiler.cmake	27 Apr 2007 13:09:42 -0000	1.33.2.2
+++ CMakeDetermineCXXCompiler.cmake	27 Apr 2007 14:44:37 -0000	1.33.2.3
@@ -76,6 +76,11 @@
 # Build a small source file to identify the compiler.
 IF(${CMAKE_GENERATOR} MATCHES "Visual Studio")
   SET(CMAKE_CXX_COMPILER_ID_RUN 1)
+  SET(CMAKE_CXX_PLATFORM_ID "Windows")
+
+  # TODO: Set the compiler id.  It is probably MSVC but
+  # the user may be using an integrated Intel compiler.
+  # SET(CMAKE_CXX_COMPILER_ID "MSVC")
 ENDIF(${CMAKE_GENERATOR} MATCHES "Visual Studio")
 IF(NOT CMAKE_CXX_COMPILER_ID_RUN)
   SET(CMAKE_CXX_COMPILER_ID_RUN 1)

Index: CMakeDetermineCCompiler.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/CMakeDetermineCCompiler.cmake,v
retrieving revision 1.38.2.2
retrieving revision 1.38.2.3
diff -u -d -r1.38.2.2 -r1.38.2.3
--- CMakeDetermineCCompiler.cmake	27 Apr 2007 13:09:42 -0000	1.38.2.2
+++ CMakeDetermineCCompiler.cmake	27 Apr 2007 14:44:37 -0000	1.38.2.3
@@ -56,6 +56,11 @@
 # Build a small source file to identify the compiler.
 IF(${CMAKE_GENERATOR} MATCHES "Visual Studio")
   SET(CMAKE_C_COMPILER_ID_RUN 1)
+  SET(CMAKE_C_PLATFORM_ID "Windows")
+
+  # TODO: Set the compiler id.  It is probably MSVC but
+  # the user may be using an integrated Intel compiler.
+  # SET(CMAKE_C_COMPILER_ID "MSVC")
 ENDIF(${CMAKE_GENERATOR} MATCHES "Visual Studio")
 IF(NOT CMAKE_C_COMPILER_ID_RUN)
   SET(CMAKE_C_COMPILER_ID_RUN 1)



More information about the Cmake-commits mailing list