From 128f8e58c80c4537f95fe5a74be02242886e59c3 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Sat, 23 Jul 2022 06:15:17 +0200 Subject: [PATCH] Fix build with older CMake Vulkan_VERSION was introduced in 3.23 Closes #75 --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 30e061c..450a3b1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,6 +17,8 @@ if (VULKAN_FOUND AND NOT TARGET Vulkan::Vulkan) set_target_properties(Vulkan::Vulkan PROPERTIES IMPORTED_LOCATION "${VULKAN_LIBRARIES}" INTERFACE_INCLUDE_DIRECTORIES "${VULKAN_INCLUDE_DIRS}") +endif() +if (NOT Vulkan_VERSION) set(Vulkan_VERSION "1.3.221") endif()