diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-09-07 19:08:33 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-09-07 19:09:41 +0300 |
commit | ea6992d0e5cbde4a2fbf62bf76fd6d6b698b91eb (patch) | |
tree | 09728b3528edb762ed20d942e41e556322171864 /build_files/cmake/platform/platform_apple.cmake | |
parent | d5642584cde8a16e1afe61f95fdc18f2ea2fc633 (diff) |
Fix missing LLVM include directories on macOS
These are not used in master yet, but they are needed for the functions branch.
Diffstat (limited to 'build_files/cmake/platform/platform_apple.cmake')
-rw-r--r-- | build_files/cmake/platform/platform_apple.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/build_files/cmake/platform/platform_apple.cmake b/build_files/cmake/platform/platform_apple.cmake index e79359e9f3b..249546dd216 100644 --- a/build_files/cmake/platform/platform_apple.cmake +++ b/build_files/cmake/platform/platform_apple.cmake @@ -322,7 +322,6 @@ endif() if(WITH_LLVM) set(LLVM_ROOT_DIR ${LIBDIR}/llvm) - set(LLVM_VERSION 3.4) if(EXISTS "${LLVM_ROOT_DIR}/bin/llvm-config") set(LLVM_CONFIG "${LLVM_ROOT_DIR}/bin/llvm-config") else() @@ -334,6 +333,9 @@ if(WITH_LLVM) execute_process(COMMAND ${LLVM_CONFIG} --prefix OUTPUT_VARIABLE LLVM_ROOT_DIR OUTPUT_STRIP_TRAILING_WHITESPACE) + execute_process(COMMAND ${LLVM_CONFIG} --includedir + OUTPUT_VARIABLE LLVM_INCLUDE_DIRS + OUTPUT_STRIP_TRAILING_WHITESPACE) execute_process(COMMAND ${LLVM_CONFIG} --libdir OUTPUT_VARIABLE LLVM_LIBPATH OUTPUT_STRIP_TRAILING_WHITESPACE) |