OSX/cmake: force LLVM_STATIC ON, to fix linking issues

This commit is contained in:
jens verwiebe 2014-08-05 20:15:44 +02:00
parent 5336e68e11
commit e4146e6fa3
1 changed files with 1 additions and 0 deletions

View File

@ -1883,6 +1883,7 @@ elseif(APPLE)
PATHS ${LLVM_LIBPATH})
if(LLVM_LIBRARY AND LLVM_DIRECTORY AND LLVM_LIBPATH)
set(LLVM_STATIC ON CACHE BOOL "ON" FORCE) # we use always the static libs default, else gives linking errors
if(LLVM_STATIC)
# if static LLVM libraries were requested, use llvm-config to generate
# the list of what libraries we need, and substitute that in the right