[libclc] 4a7205f - libclc: CMake: include GetClangResourceDir (#155836)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 28 09:56:36 PDT 2025
Author: Romaric Jodin
Date: 2025-08-28T17:56:33+01:00
New Revision: 4a7205f892761bedf5208f30c8d30144c84fdd9f
URL: https://github.com/llvm/llvm-project/commit/4a7205f892761bedf5208f30c8d30144c84fdd9f
DIFF: https://github.com/llvm/llvm-project/commit/4a7205f892761bedf5208f30c8d30144c84fdd9f.diff
LOG: libclc: CMake: include GetClangResourceDir (#155836)
`get_clang_resource_dir` is not guarantee to be there. Make sure of it
by including `GetClangResourceDir`.
Added:
Modified:
libclc/CMakeLists.txt
Removed:
################################################################################
diff --git a/libclc/CMakeLists.txt b/libclc/CMakeLists.txt
index 756e097dcf123..5c4e12793329c 100644
--- a/libclc/CMakeLists.txt
+++ b/libclc/CMakeLists.txt
@@ -99,6 +99,7 @@ else()
# Setup the paths where libclc runtimes should be stored. By default, in an
# in-tree build we place the libraries in clang's resource driectory.
+ include(GetClangResourceDir)
get_clang_resource_dir( LIBCLC_OUTPUT_DIR PREFIX ${LLVM_LIBRARY_OUTPUT_INTDIR}/.. )
# Note we do not adhere to LLVM_ENABLE_PER_TARGET_RUNTIME_DIR.
More information about the cfe-commits
mailing list