Commit 46763682 authored by Ralf Habacker's avatar Ralf Habacker
Browse files

Fix 'Building Umbrello 2.21.90.89e79b8d with optional LLVM fails'.

Enable llvm test case only if clang development package has been
found too because it is not optional.

BUG:379293
FIXED-IN:2.22.2 (KDE Applications 17.04.2)
parent badcf99a
......@@ -120,7 +120,7 @@ target_link_libraries(testcrashhandler ${LIBS})
find_package(LLVM CONFIG)
find_package(CLANG QUIET)
if(LLVM_FOUND)
if(LLVM_FOUND AND CLANG_FOUND)
message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}")
message(STATUS "Using LLVMConfig.cmake in: ${LLVM_DIR}")
......@@ -129,10 +129,8 @@ if(LLVM_FOUND)
include_directories(${LLVM_INCLUDE_DIRS})
add_definitions(${LLVM_DEFINITIONS})
if(CLANG_FOUND)
include_directories(${CLANG_INCLUDE_DIRS})
add_definitions(${CLANG_DEFINITIONS})
endif()
include_directories(${CLANG_INCLUDE_DIRS})
add_definitions(${CLANG_DEFINITIONS})
# Now build our tools
add_executable(testllvm testllvm.cpp)
......
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