mirror of
https://github.com/reactos/CMake.git
synced 2024-11-28 05:50:42 +00:00
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>
This commit is contained in:
parent
9b6fdbfb92
commit
f3ac06519f
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user