CMake/LLVM: Add INCLUDE_DIRS to find package.

Ref {D8855}

Reviewed By: brecht

Differential Revision: https://developer.blender.org/D8919
This commit is contained in:
Ankit Meel 2020-09-17 16:59:35 +05:30
parent b746179d0a
commit 402a4cadba
Notes: blender-bot 2023-02-13 11:55:01 +01:00
Referenced by commit 1f6b7387ad, CMake/macOS: Remove _LIBPATH, avoid link_directories.
1 changed files with 5 additions and 1 deletions

View File

@ -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