diff options
-rw-r--r-- | Modules/Platform/Windows-cl.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Platform/Windows-cl.cmake b/Modules/Platform/Windows-cl.cmake index 74c705f..d047aba 100644 --- a/Modules/Platform/Windows-cl.cmake +++ b/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 |