Fixes LLVM library detection.

I must have had a dirty cmake configuration which didn't encounter this issue.
Make sure we are using LLVM_DEFINITIONS to know where we are linking to libraries at.
Link against libLLVM-${VERSION}, the other one was linking us against static libraries...
This commit is contained in:
Ryan Houdek
2014-10-26 16:17:57 -05:00
parent 2f132863d6
commit bd1a192faf
2 changed files with 7 additions and 5 deletions

View File

@ -411,6 +411,7 @@ if(NOT ANDROID)
set(HAS_LLVM 1)
include_directories(${LLVM_INCLUDE_DIRS})
add_definitions(${LLVM_DEFINITIONS})
message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}")
endif()