summaryrefslogtreecommitdiff
path: root/Modules/FindVulkan.cmake
diff options
context:
space:
mode:
authorMACHIZAUD Andréa <andrea.machizaud@gmail.com>2022-05-18 17:20:42 +0200
committerMACHIZAUD Andréa <andrea.machizaud@gmail.com>2022-05-18 23:16:11 +0200
commit998ee49779147372f58b66464860bc0cd159a7ce (patch)
tree1ea3ce9dc3162f4f8c6380d80466fba58f29c88b /Modules/FindVulkan.cmake
parent9f8720e74c01f209126a036d13aaccf15a1b4f07 (diff)
downloadcmake-998ee49779147372f58b66464860bc0cd159a7ce.tar.gz
FindVulkan: ensure policy CMP0057 is NEW to use `IN_LIST` with `if()`
Diffstat (limited to 'Modules/FindVulkan.cmake')
-rw-r--r--Modules/FindVulkan.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/FindVulkan.cmake b/Modules/FindVulkan.cmake
index 0c9f9b911c..d72dc300e6 100644
--- a/Modules/FindVulkan.cmake
+++ b/Modules/FindVulkan.cmake
@@ -127,6 +127,9 @@ environment.
#]=======================================================================]
+cmake_policy(PUSH)
+cmake_policy(SET CMP0057 NEW)
+
if(WIN32)
set(_Vulkan_library_name vulkan-1)
set(_Vulkan_hint_include_search_paths
@@ -619,3 +622,5 @@ unset(_Vulkan_library_name)
unset(_Vulkan_hint_include_search_paths)
unset(_Vulkan_hint_executable_search_paths)
unset(_Vulkan_hint_library_search_paths)
+
+cmake_policy(POP)