summaryrefslogtreecommitdiff
path: root/Modules/CMakeTestCompilerCommon.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-02-25 08:25:35 -0500
committerBrad King <brad.king@kitware.com>2016-02-25 08:29:41 -0500
commitf3ac06519f10ba535abe91dfd6e7074a366f5a14 (patch)
tree1de20069989da0d2280d0dd826d10e4136e855a7 /Modules/CMakeTestCompilerCommon.cmake
parent9b6fdbfb922d65794847fabb047c3045632829c0 (diff)
downloadcmake-f3ac06519f10ba535abe91dfd6e7074a366f5a14.tar.gz
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>
Diffstat (limited to 'Modules/CMakeTestCompilerCommon.cmake')
-rw-r--r--Modules/CMakeTestCompilerCommon.cmake6
1 files changed, 1 insertions, 5 deletions
diff --git a/Modules/CMakeTestCompilerCommon.cmake b/Modules/CMakeTestCompilerCommon.cmake
index d51b503a1b..e0d45e7f04 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()