diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2021-10-08 09:19:58 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2021-10-08 09:19:58 +0900 |
commit | 484e650e5f7846961a1597af681a9186b2a03729 (patch) | |
tree | 83cbc84f064eb6ac9691cbfa3ac4d8c6f311fb0b /Modules/CMakeTestCompilerCommon.cmake | |
parent | cd3301b98f04fe073d08531f49b84be0aa2897ef (diff) | |
download | cmake-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.cmake | 11 |
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 |