Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2016-01-19 04:37:26 +0300
committerCampbell Barton <ideasman42@gmail.com>2016-01-19 04:37:26 +0300
commit257268a1bd66543eb2420b4ad3be96ba0cf74554 (patch)
treefaa5e703710e6f29074bff9a4e2fcc528831613d /build_files
parent3b3b35546e2a0752db5460b2cc9246f11f4219ee (diff)
CMake: check for LLVM static library by default
Even when static option isn't enabled, use the static library path if the dynamic library isn't found.
Diffstat (limited to 'build_files')
-rw-r--r--build_files/cmake/Modules/FindLLVM.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/build_files/cmake/Modules/FindLLVM.cmake b/build_files/cmake/Modules/FindLLVM.cmake
index 43791c8df8c..f5f3db3fc71 100644
--- a/build_files/cmake/Modules/FindLLVM.cmake
+++ b/build_files/cmake/Modules/FindLLVM.cmake
@@ -64,7 +64,9 @@ if(LLVM_STATIC)
PATHS ${LLVM_LIBPATH})
else()
find_library(LLVM_LIBRARY
- NAMES LLVM-${LLVM_VERSION}
+ NAMES
+ LLVM-${LLVM_VERSION}
+ LLVMAnalysis # check for the static library as a fall-back
PATHS ${LLVM_LIBPATH})
endif()