FindVulkan: ensure policy CMP0057 is NEW to use IN_LIST with if()

This commit is contained in:
MACHIZAUD Andréa
2022-05-18 17:20:42 +02:00
parent 9f8720e74c
commit 998ee49779

View File

@@ -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)