diff options
author | Ruslan Baratov <ruslan_baratov@yahoo.com> | 2018-03-22 12:32:43 (GMT) |
---|---|---|
committer | Ruslan Baratov <ruslan_baratov@yahoo.com> | 2018-03-22 12:32:43 (GMT) |
commit | 20c204244b4000dc209da42a1b2a39c06c454419 (patch) | |
tree | ab3340f43539d5aea7315306600ceabb43181f92 /Modules/CheckSymbolExists.cmake | |
parent | 9b3d3952a8a0371504d120ed73444bfc52ae7f79 (diff) | |
download | CMake-20c204244b4000dc209da42a1b2a39c06c454419.zip CMake-20c204244b4000dc209da42a1b2a39c06c454419.tar.gz CMake-20c204244b4000dc209da42a1b2a39c06c454419.tar.bz2 |
CheckSymbolExists: Fix CMP0054 warning
Diffstat (limited to 'Modules/CheckSymbolExists.cmake')
-rw-r--r-- | Modules/CheckSymbolExists.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/CheckSymbolExists.cmake b/Modules/CheckSymbolExists.cmake index d9c9ae4..3483121 100644 --- a/Modules/CheckSymbolExists.cmake +++ b/Modules/CheckSymbolExists.cmake @@ -45,6 +45,9 @@ the way the check is run: include_guard(GLOBAL) +cmake_policy(PUSH) +cmake_policy(SET CMP0054 NEW) # if() quoted variables not dereferenced + macro(CHECK_SYMBOL_EXISTS SYMBOL FILES VARIABLE) if(CMAKE_C_COMPILER_LOADED) __CHECK_SYMBOL_EXISTS_IMPL("${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/CheckSymbolExists.c" "${SYMBOL}" "${FILES}" "${VARIABLE}" ) @@ -116,3 +119,5 @@ macro(__CHECK_SYMBOL_EXISTS_IMPL SOURCEFILE SYMBOL FILES VARIABLE) endif() endif() endmacro() + +cmake_policy(POP) |