summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-02-25 13:25:35 (GMT)
committerBrad King <brad.king@kitware.com>2016-02-25 13:29:41 (GMT)
commitf3ac06519f10ba535abe91dfd6e7074a366f5a14 (patch)
tree1de20069989da0d2280d0dd826d10e4136e855a7
parent9b6fdbfb922d65794847fabb047c3045632829c0 (diff)
downloadCMake-f3ac06519f10ba535abe91dfd6e7074a366f5a14.zip
CMake-f3ac06519f10ba535abe91dfd6e7074a366f5a14.tar.gz
CMake-f3ac06519f10ba535abe91dfd6e7074a366f5a14.tar.bz2
Improve compiler check message on non-Make generators
When we check for a working compiler we print a message of the form: Check for working <LANG> compiler: ... At one time CMAKE_<LANG>_COMPILER was not well-defined for all generators so we printed the generator name instead of the path to the compiler. Nowadays we always know the compiler, so update the message to print it unconditionally. This is more informative than the generator name, especially when a toolset (cmake -T) is used. Suggested-by: Gregor Jasny <gjasny@googlemail.com>
-rw-r--r--Modules/CMakeTestCompilerCommon.cmake6
1 files changed, 1 insertions, 5 deletions
diff --git a/Modules/CMakeTestCompilerCommon.cmake b/Modules/CMakeTestCompilerCommon.cmake
index d51b503..e0d45e7 100644
--- a/Modules/CMakeTestCompilerCommon.cmake
+++ b/Modules/CMakeTestCompilerCommon.cmake
@@ -13,9 +13,5 @@
# License text for the above reference.)
function(PrintTestCompilerStatus LANG MSG)
- if(CMAKE_GENERATOR MATCHES Make)
- message(STATUS "Check for working ${LANG} compiler: ${CMAKE_${LANG}_COMPILER}${MSG}")
- else()
- message(STATUS "Check for working ${LANG} compiler using: ${CMAKE_GENERATOR}${MSG}")
- endif()
+ message(STATUS "Check for working ${LANG} compiler: ${CMAKE_${LANG}_COMPILER}${MSG}")
endfunction()