Skip to content

Commit

Permalink
Add minimum required Vulkan version check in the CMake module example
Browse files Browse the repository at this point in the history
  • Loading branch information
sharadhr committed Jan 7, 2024
1 parent 7e4f39a commit 9a1dfbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ CMake provides the [FindVulkan module](https://cmake.org/cmake/help/latest/modul
find_package( Vulkan REQUIRED )
# Require Vulkan version ≥ 1.3.256 (earliest version when the Vulkan module was available)
if( Vulkan_VERSION VERSION_LESS "1.3.256" )
if( ${Vulkan_VERSION} VERSION_LESS "1.3.256" )
message( FATAL_ERROR "Minimum required Vulkan version for C++ modules is 1.3.256. "
"Found ${Vulkan_VERSION}."
)
Expand Down

0 comments on commit 9a1dfbb

Please sign in to comment.