OSX/cmake: move last commited line to a better place

This commit is contained in:
Jens Verwiebe
2014-08-05 20:21:22 +02:00
parent e4146e6fa3
commit 86e9f84be7

View File

@@ -1862,6 +1862,7 @@ elseif(APPLE)
endif()
if(WITH_LLVM)
set(LLVM_STATIC ON CACHE BOOL "ON" FORCE) # we use always the static libs default, else gives linking errors
set(LLVM_DIRECTORY ${LIBDIR}/llvm CACHE PATH "Path to the LLVM installation")
set(LLVM_VERSION "3.4" CACHE STRING "Version of LLVM to use")
if(EXISTS "${LLVM_DIRECTORY}/bin/llvm-config")
@@ -1883,7 +1884,6 @@ 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