C++ compiler is not set for c only projects
This commit is contained in:
parent
4eb0400c98
commit
dc4a6f63b0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue