diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2005-01-17 20:20:41 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2005-01-17 20:20:41 (GMT) |
commit | e7bc462755b72af9ecf8869a295619bc36108a67 (patch) | |
tree | 346d9d1a3940df246e099071ef0d0206f09cf062 /Modules/Platform | |
parent | 64f4880cb56887935c7490c0a225dc7182b832c5 (diff) | |
download | CMake-e7bc462755b72af9ecf8869a295619bc36108a67.zip CMake-e7bc462755b72af9ecf8869a295619bc36108a67.tar.gz CMake-e7bc462755b72af9ecf8869a295619bc36108a67.tar.bz2 |
BUG: fix running of cl in trycompiles
Diffstat (limited to 'Modules/Platform')
-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 32f8396..d864a11 100644 --- a/Modules/Platform/Windows-cl.cmake +++ b/Modules/Platform/Windows-cl.cmake @@ -80,7 +80,7 @@ IF(CMAKE_GENERATOR MATCHES "NMake Makefiles") # tools from Microsoft. These tools do not provide debug libraries, # so the link flags used have to be different. MAKE_DIRECTORY("${CMAKE_BINARY_DIR}/CMakeTmp2") - EXEC_PROGRAM(${CMAKE_CXX_COMPILER} ${CMAKE_BINARY_DIR}/CMakeTmp2 + EXEC_PROGRAM(${CMAKE_C_COMPILER} ${CMAKE_BINARY_DIR}/CMakeTmp2 ARGS /nologo /MD /EHsc \"${CMAKE_ROOT}/Modules/CMakeTestForFreeVC.cxx\" OUTPUT_VARIABLE CMAKE_COMPILER_OUTPUT |