CMakeLists.txt: Fix SPIRV-Headers target check
This commit is contained in:
parent
770472e6fd
commit
6e6d79272c
1 changed files with 5 additions and 1 deletions
|
@ -89,9 +89,13 @@ if (SIRIT_USE_SYSTEM_SPIRV_HEADERS)
|
|||
find_package(SPIRV-Headers REQUIRED)
|
||||
else()
|
||||
add_subdirectory(externals/SPIRV-Headers EXCLUDE_FROM_ALL)
|
||||
add_library(SPIRV-Headers::SPIRV-Headers ALIAS SPIRV-Headers)
|
||||
|
||||
if (NOT TARGET SPIRV-Headers::SPIRV-Headers)
|
||||
add_library(SPIRV-Headers::SPIRV-Headers ALIAS SPIRV-Headers)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
||||
# Sirit project files
|
||||
add_subdirectory(src)
|
||||
if (SIRIT_TESTS)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue