[clang] RFC: [cmake] Export CLANG_RESOURCE_DIR in ClangConfig (PR #97197)

Chris B via cfe-commits cfe-commits at lists.llvm.org
Sat Jul 13 09:56:38 PDT 2024


llvm-beanz wrote:

@kimgr you should be able to have CMake query the path of libclang and go from there. Something like:

```cmake
get_target_property(SHARED_LIB_DIR libclang RUNTIME_OUTPUT_DIRECTORY)
```

That should give you the binary location of libclang, which should work for resolving the final path.

https://github.com/llvm/llvm-project/pull/97197


More information about the cfe-commits mailing list