Commit 7c8ebe34 authored by Milian Wolff's avatar Milian Wolff
Browse files

Make Clang and LLVM required.

parent 65a3d93d
......@@ -2,11 +2,7 @@ project(kdev-clang)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake/)
find_package(Clang 3.5)
set_package_properties(Clang PROPERTIES
TYPE REQUIRED
PURPOSE "LibClang is a high level C interface to clang"
URL "http://clang.llvm.org/")
find_package(Clang 3.5 REQUIRED)
add_definitions(${LLVM_CFLAGS})
include_directories(${CLANG_INCLUDE_DIR})
......
......@@ -26,7 +26,11 @@
#=============================================================================
find_package(LLVM ${Clang_FIND_VERSION} ${Clang_FIND_REQUIRED})
if (${Clang_FIND_REQUIRED})
find_package(LLVM ${Clang_FIND_VERSION} REQUIRED)
else ()
find_package(LLVM ${Clang_FIND_VERSION})
endif ()
set(CLANG_FOUND FALSE)
......
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