diff options
author | Ankit Meel <ankitjmeel@gmail.com> | 2020-09-17 14:29:35 +0300 |
---|---|---|
committer | Ankit Meel <ankitjmeel@gmail.com> | 2020-09-18 16:44:01 +0300 |
commit | 402a4cadba495a57a4ee789a2ed6c4b9acaecba9 (patch) | |
tree | 04d9953e7c8d464a00507a3e75d8119bca81d1f7 /build_files | |
parent | b746179d0add695143675ba5b516618f4b294270 (diff) |
CMake/LLVM: Add INCLUDE_DIRS to find package.
Ref {D8855}
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D8919
Diffstat (limited to 'build_files')
-rw-r--r-- | build_files/cmake/Modules/FindLLVM.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/build_files/cmake/Modules/FindLLVM.cmake b/build_files/cmake/Modules/FindLLVM.cmake index d7269a4281f..ce4297bf54a 100644 --- a/build_files/cmake/Modules/FindLLVM.cmake +++ b/build_files/cmake/Modules/FindLLVM.cmake @@ -34,6 +34,10 @@ else() endif() endif() +execute_process(COMMAND ${LLVM_CONFIG} --includedir + OUTPUT_VARIABLE LLVM_INCLUDE_DIRS + OUTPUT_STRIP_TRAILING_WHITESPACE) + if(NOT DEFINED LLVM_VERSION) execute_process(COMMAND ${LLVM_CONFIG} --version OUTPUT_VARIABLE LLVM_VERSION @@ -80,7 +84,7 @@ if(LLVM_LIBRARY AND LLVM_ROOT_DIR AND LLVM_LIBPATH) endif() -# handle the QUIETLY and REQUIRED arguments and set SDL2_FOUND to TRUE if +# handle the QUIETLY and REQUIRED arguments and set LLVM_FOUND to TRUE if # all listed variables are TRUE INCLUDE(FindPackageHandleStandardArgs) FIND_PACKAGE_HANDLE_STANDARD_ARGS(LLVM DEFAULT_MSG |