summaryrefslogtreecommitdiffstats
path: root/Modules/Platform
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2005-01-17 20:20:41 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2005-01-17 20:20:41 (GMT)
commite7bc462755b72af9ecf8869a295619bc36108a67 (patch)
tree346d9d1a3940df246e099071ef0d0206f09cf062 /Modules/Platform
parent64f4880cb56887935c7490c0a225dc7182b832c5 (diff)
downloadCMake-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.cmake2
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