Commit dc4a6f63 authored by Bill Hoffman's avatar Bill Hoffman
Browse files

C++ compiler is not set for c only projects

parent 4eb0400c
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment