Skip to content

Commit

Permalink
Fix build with older CMake
Browse files Browse the repository at this point in the history
Vulkan_VERSION was introduced in 3.23

Closes #75
  • Loading branch information
nowrep committed Jul 23, 2022
1 parent 2216888 commit 128f8e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 128f8e5

Please sign in to comment.