summaryrefslogtreecommitdiff
path: root/share/cmake-3.16/Modules/CMakeTestCompilerCommon.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'share/cmake-3.16/Modules/CMakeTestCompilerCommon.cmake')
-rw-r--r--share/cmake-3.16/Modules/CMakeTestCompilerCommon.cmake27
1 files changed, 0 insertions, 27 deletions
diff --git a/share/cmake-3.16/Modules/CMakeTestCompilerCommon.cmake b/share/cmake-3.16/Modules/CMakeTestCompilerCommon.cmake
deleted file mode 100644
index 6ee5175..0000000
--- a/share/cmake-3.16/Modules/CMakeTestCompilerCommon.cmake
+++ /dev/null
@@ -1,27 +0,0 @@
-# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
-# 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}")
-endfunction()
-
-# if required set the target type if not already explicitly set
-macro(__TestCompiler_setTryCompileTargetType)
- if(NOT CMAKE_TRY_COMPILE_TARGET_TYPE)
- if("${CMAKE_GENERATOR}" MATCHES "Green Hills MULTI")
- #prefer static libraries to avoid linking issues
- set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)
- set(__CMAKE_TEST_COMPILER_TARGET_TYPE_RESTORE 1)
- endif()
- endif()
-endmacro()
-
-# restore the original value
-# -- not necessary if __TestCompiler_setTryCompileTargetType() was used in function scope
-macro(__TestCompiler_restoreTryCompileTargetType)
- if(__CMAKE_TEST_COMPILER_TARGET_TYPE_RESTORE)
- unset(CMAKE_TRY_COMPILE_TARGET_TYPE)
- unset(__CMAKE_TEST_COMPILER_TARGET_TYPE_RESTORE)
- endif()
-endmacro()