mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-05 14:49:39 -06:00
CMakeTestCXXCompiler.cmake: Improve logging consistency
Use "C++ compiler" rather than "CXX compiler" in certain logging messages. This improves both internal consistency (as "C++ compiler" was already used elsewhere) and consistency with e.g. the equivalent logging for the "Objective-C[++] compiler".
This commit is contained in:
@@ -57,7 +57,7 @@ if(NOT CMAKE_CXX_COMPILER_WORKS)
|
|||||||
if(NOT CMAKE_CXX_COMPILER_WORKS)
|
if(NOT CMAKE_CXX_COMPILER_WORKS)
|
||||||
PrintTestCompilerResult(CHECK_FAIL "broken")
|
PrintTestCompilerResult(CHECK_FAIL "broken")
|
||||||
file(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log
|
file(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log
|
||||||
"Determining if the CXX compiler works failed with "
|
"Determining if the C++ compiler works failed with "
|
||||||
"the following output:\n${__CMAKE_CXX_COMPILER_OUTPUT}\n\n")
|
"the following output:\n${__CMAKE_CXX_COMPILER_OUTPUT}\n\n")
|
||||||
string(REPLACE "\n" "\n " _output "${__CMAKE_CXX_COMPILER_OUTPUT}")
|
string(REPLACE "\n" "\n " _output "${__CMAKE_CXX_COMPILER_OUTPUT}")
|
||||||
message(FATAL_ERROR "The C++ compiler\n \"${CMAKE_CXX_COMPILER}\"\n"
|
message(FATAL_ERROR "The C++ compiler\n \"${CMAKE_CXX_COMPILER}\"\n"
|
||||||
@@ -67,7 +67,7 @@ if(NOT CMAKE_CXX_COMPILER_WORKS)
|
|||||||
endif()
|
endif()
|
||||||
PrintTestCompilerResult(CHECK_PASS "works")
|
PrintTestCompilerResult(CHECK_PASS "works")
|
||||||
file(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log
|
file(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log
|
||||||
"Determining if the CXX compiler works passed with "
|
"Determining if the C++ compiler works passed with "
|
||||||
"the following output:\n${__CMAKE_CXX_COMPILER_OUTPUT}\n\n")
|
"the following output:\n${__CMAKE_CXX_COMPILER_OUTPUT}\n\n")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user