Skip to content

Commit

Permalink
CMake: allow to use a out-of-tree SPIRV-Tools sources (#739)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjodinchr authored Nov 16, 2024
1 parent d079994 commit 4aa6f00
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ set(SPIRV-Headers_SOURCE_DIR ${SPIRV_HEADERS_SOURCE_DIR})

set(CLVK_BUILD_SPIRV_TOOLS ON CACHE BOOL "Set to OFF to disable SPIRV-Tools build")
if (CLVK_BUILD_SPIRV_TOOLS)
add_subdirectory(${SPIRV_TOOLS_SOURCE_DIR} EXCLUDE_FROM_ALL)
add_subdirectory(${SPIRV_TOOLS_SOURCE_DIR}
${PROJECT_BINARY_DIR}/external/SPIRV-Tools EXCLUDE_FROM_ALL)
endif()

# clspv
Expand Down

0 comments on commit 4aa6f00

Please sign in to comment.