Skip to content

Commit 4a7205f

Browse files
authored
libclc: CMake: include GetClangResourceDir (llvm#155836)
`get_clang_resource_dir` is not guarantee to be there. Make sure of it by including `GetClangResourceDir`.
1 parent 403986e commit 4a7205f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libclc/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ else()
9999

100100
# Setup the paths where libclc runtimes should be stored. By default, in an
101101
# in-tree build we place the libraries in clang's resource driectory.
102+
include(GetClangResourceDir)
102103
get_clang_resource_dir( LIBCLC_OUTPUT_DIR PREFIX ${LLVM_LIBRARY_OUTPUT_INTDIR}/.. )
103104

104105
# Note we do not adhere to LLVM_ENABLE_PER_TARGET_RUNTIME_DIR.

0 commit comments

Comments
 (0)