diff options
author | MACHIZAUD Andréa <andrea.machizaud@gmail.com> | 2022-05-18 15:20:42 (GMT) |
---|---|---|
committer | MACHIZAUD Andréa <andrea.machizaud@gmail.com> | 2022-05-18 21:16:11 (GMT) |
commit | 998ee49779147372f58b66464860bc0cd159a7ce (patch) | |
tree | 1ea3ce9dc3162f4f8c6380d80466fba58f29c88b /Modules/FindVulkan.cmake | |
parent | 9f8720e74c01f209126a036d13aaccf15a1b4f07 (diff) | |
download | CMake-998ee49779147372f58b66464860bc0cd159a7ce.zip CMake-998ee49779147372f58b66464860bc0cd159a7ce.tar.gz CMake-998ee49779147372f58b66464860bc0cd159a7ce.tar.bz2 |
FindVulkan: ensure policy CMP0057 is NEW to use `IN_LIST` with `if()`
Diffstat (limited to 'Modules/FindVulkan.cmake')
-rw-r--r-- | Modules/FindVulkan.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/FindVulkan.cmake b/Modules/FindVulkan.cmake index 0c9f9b9..d72dc30 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) |