Browse Source

C++ compiler is not set for c only projects

Bill Hoffman 22 years ago
parent
commit
dc4a6f63b0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Modules/Platform/Windows-cl.cmake

+ 1 - 1
Modules/Platform/Windows-cl.cmake

@@ -75,7 +75,7 @@ ENDIF(CMAKE_GENERATOR MATCHES "Visual Studio 7")
 # does the compiler support pdbtype
 SET(CMAKE_COMPILER_SUPPORTS_PDBTYPE 1)
 IF(CMAKE_GENERATOR MATCHES "NMake Makefiles")
-  EXEC_PROGRAM(${CMAKE_CXX_COMPILER} 
+  EXEC_PROGRAM(${CMAKE_C_COMPILER} 
     ARGS /nologo -EP \"${CMAKE_ROOT}/Modules/CMakeTestNMakeCLVersion.c\" 
     OUTPUT_VARIABLE CMAKE_COMPILER_OUTPUT 
     RETURN_VALUE CMAKE_COMPILER_RETURN