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.
This commit is contained in:
Campbell Barton 2016-01-19 12:37:26 +11:00
parent 3b3b35546e
commit 257268a1bd

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