summaryrefslogtreecommitdiff
path: root/Modules/CMakeTestCompilerCommon.cmake
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2021-10-08 09:19:58 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2021-10-08 09:19:58 +0900
commit484e650e5f7846961a1597af681a9186b2a03729 (patch)
tree83cbc84f064eb6ac9691cbfa3ac4d8c6f311fb0b /Modules/CMakeTestCompilerCommon.cmake
parentcd3301b98f04fe073d08531f49b84be0aa2897ef (diff)
downloadcmake-484e650e5f7846961a1597af681a9186b2a03729.tar.gz
cmake-484e650e5f7846961a1597af681a9186b2a03729.tar.bz2
cmake-484e650e5f7846961a1597af681a9186b2a03729.zip
Imported Upstream version 3.17.0upstream/3.17.0
Diffstat (limited to 'Modules/CMakeTestCompilerCommon.cmake')
-rw-r--r--Modules/CMakeTestCompilerCommon.cmake11
1 files changed, 9 insertions, 2 deletions
diff --git a/Modules/CMakeTestCompilerCommon.cmake b/Modules/CMakeTestCompilerCommon.cmake
index 6ee5175dd..da7c007d0 100644
--- a/Modules/CMakeTestCompilerCommon.cmake
+++ b/Modules/CMakeTestCompilerCommon.cmake
@@ -2,8 +2,15 @@
# file Copyright.txt or https://cmake.org/licensing for details.
-function(PrintTestCompilerStatus LANG MSG)
- message(STATUS "Check for working ${LANG} compiler: ${CMAKE_${LANG}_COMPILER}${MSG}")
+function(PrintTestCompilerStatus LANG)
+ # ARGN shouldn't be needed now, but it is there to preserve backward
+ # compatibility in case this function is called from project code or
+ # custom toolchains (they shouldn't, but we can easily support it)
+ message(CHECK_START "Check for working ${LANG} compiler: ${CMAKE_${LANG}_COMPILER}${ARGN}")
+endfunction()
+
+function(PrintTestCompilerResult TYPE MSG)
+ message(${TYPE} "${MSG}")
endfunction()
# if required set the target type if not already explicitly set