aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorAlexandre Bouvier <[email protected]>2021-08-09 23:26:14 +0200
committerRodrigo Locatti <[email protected]>2022-05-14 15:59:52 -0300
commitaa292d56650bc28f2b2d75973fab2e61d0136f9c (patch)
tree933a27647277f477da23da3265d46b25beb5e322 /src/CMakeLists.txt
parentb8f133bf631ace5a613bbd7e8329300358cacbd2 (diff)
downloadsirit-aa292d56650bc28f2b2d75973fab2e61d0136f9c.tar.gz
sirit-aa292d56650bc28f2b2d75973fab2e61d0136f9c.zip
cmake: Support using system SPIRV-Headers
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index c9bf093..18f3e1b 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -27,5 +27,6 @@ target_compile_options(sirit PRIVATE ${SIRIT_CXX_FLAGS})
target_include_directories(sirit
PUBLIC ../include
- PRIVATE . ${SPIRV-Headers_SOURCE_DIR}/include
- INTERFACE ${SPIRV-Headers_SOURCE_DIR}/include)
+ PRIVATE .)
+
+target_link_libraries(sirit PUBLIC SPIRV-Headers::SPIRV-Headers)