diff options
author | Brad King <brad.king@kitware.com> | 2021-09-17 13:32:37 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-09-17 13:32:50 (GMT) |
commit | dfb31d3a3f2ec7d2b50cda60132bc4add0e25d79 (patch) | |
tree | 670a8b81f32422168f8d075b6efbb8c421d0e3b9 /Modules | |
parent | 241048d6ceb5dd4a16950c29286aebbcc46e565c (diff) | |
parent | f77ffbc0e3933dd1247fb20c364452fe0f4f1505 (diff) | |
download | CMake-dfb31d3a3f2ec7d2b50cda60132bc4add0e25d79.zip CMake-dfb31d3a3f2ec7d2b50cda60132bc4add0e25d79.tar.gz CMake-dfb31d3a3f2ec7d2b50cda60132bc4add0e25d79.tar.bz2 |
Merge topic 'iar-enable-in-list-operator'
f77ffbc0e3 IAR: Restore support for projects not enabling policy CMP0057
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !6527
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/CMakeFindBinUtils.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/CMakeFindBinUtils.cmake b/Modules/CMakeFindBinUtils.cmake index bb97f4a..27d9131 100644 --- a/Modules/CMakeFindBinUtils.cmake +++ b/Modules/CMakeFindBinUtils.cmake @@ -20,6 +20,9 @@ # on UNIX, cygwin and mingw +cmake_policy(PUSH) +cmake_policy(SET CMP0057 NEW) # if IN_LIST + # Resolve full path of CMAKE_TOOL from user-defined name and SEARCH_PATH. function(__resolve_tool_path CMAKE_TOOL SEARCH_PATH DOCSTRING) @@ -240,3 +243,5 @@ if("x${CMAKE_${_CMAKE_PROCESSING_LANGUAGE}_COMPILER_ID}" MATCHES "^xIAR$") set(CMAKE_IAR_LINKER "${CMAKE_LINKER}" CACHE FILEPATH "The IAR ILINK linker") mark_as_advanced(CMAKE_IAR_LINKER CMAKE_IAR_AR) endif() + +cmake_policy(POP) |