Commit 92de7337 authored by Kevin Funk's avatar Kevin Funk
Browse files

FindClang: Implicitly detect LLVM

parent ab3bf41b
......@@ -13,8 +13,7 @@ cmake_minimum_required(VERSION 2.8.9)
find_package(KDE4 REQUIRED)
find_package(KDevPlatform ${KDEVPLATFORM_VERSION} REQUIRED)
find_package(LLVM 3.3 REQUIRED)
find_package(Clang REQUIRED)
find_package(Clang 3.3 REQUIRED)
# TODO: Can we make this implicit via set_target_properties magic?
link_directories(${LLVM_LIBRARY_DIRS})
......
......@@ -21,8 +21,10 @@
# See the License for more information.
#=============================================================================
find_package(LLVM ${Clang_FIND_VERSION} REQUIRED)
if (NOT LLVM_INCLUDE_DIR OR NOT LLVM_LIBRARY_DIR)
message(FATAL_ERROR "No LLVM and Clang support requires LLVM")
message(FATAL_ERROR "Could not detect LLVM")
else()
macro(FIND_AND_ADD_CLANG_LIB _libname_)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment