diff options
author | Brad King <brad.king@kitware.com> | 2012-08-16 20:23:16 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-08-22 20:35:54 (GMT) |
commit | 66cb3356f508da309d599f6148763f7afe3802e1 (patch) | |
tree | be204ca3f17d391ae965f5393622497a04cc236a /Modules/CMakeDetermineCCompiler.cmake | |
parent | 89595d6bceb25ecfa221342f03d1c3dce70c8484 (diff) | |
download | CMake-66cb3356f508da309d599f6148763f7afe3802e1.zip CMake-66cb3356f508da309d599f6148763f7afe3802e1.tar.gz CMake-66cb3356f508da309d599f6148763f7afe3802e1.tar.bz2 |
VS: Detect the compiler id and tool location
Configure a hand-generated Visual Studio project to build the compiler id
source file since we cannot run the compiler command-line tool directly.
Add a post-build command to print out the full path to the compiler tool.
Parse the full path to the compiler tool from the build output.
Diffstat (limited to 'Modules/CMakeDetermineCCompiler.cmake')
-rw-r--r-- | Modules/CMakeDetermineCCompiler.cmake | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Modules/CMakeDetermineCCompiler.cmake b/Modules/CMakeDetermineCCompiler.cmake index 7f0ffee..01859b6 100644 --- a/Modules/CMakeDetermineCCompiler.cmake +++ b/Modules/CMakeDetermineCCompiler.cmake @@ -40,10 +40,6 @@ if(NOT CMAKE_C_COMPILER_NAMES) endif() if(${CMAKE_GENERATOR} MATCHES "Visual Studio") - set(CMAKE_C_COMPILER_ID_RUN 1) - set(CMAKE_C_PLATFORM_ID "Windows") - set(CMAKE_C_COMPILER_ID "MSVC") - set(CMAKE_C_COMPILER "${CMAKE_GENERATOR_CC}") elseif("${CMAKE_GENERATOR}" MATCHES "Xcode") set(CMAKE_C_COMPILER_XCODE_TYPE sourcecode.c.c) else() |