[libclc] libclc: CMake: include GetClangResourceDir (PR #155836)
Romaric Jodin via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 28 07:06:27 PDT 2025
https://github.com/rjodinchr created https://github.com/llvm/llvm-project/pull/155836
`get_clang_resource_dir` is not guarantee to be there. Make sure of it by including `GetClangResourceDir`.
>From 8ddc066ba0a3138becac427fcc61ce08fe557226 Mon Sep 17 00:00:00 2001
From: Romaric Jodin <rjodin at google.com>
Date: Thu, 28 Aug 2025 16:03:41 +0200
Subject: [PATCH] libclc: CMake: include GetClangResourceDir
`get_clang_resource_dir` is not guarantee to be there. Make sure of it
by including `GetClangResourceDir`.
---
libclc/CMakeLists.txt | 1 +
1 file changed, 1 insertion(+)
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