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

unittests: only build llvm testcase with the supported versions 7 and 8

llvm changes api on each major release.

CCBUG:419202
parent 921f603c
......@@ -168,7 +168,11 @@ if(LLVM_FOUND AND (Clang_FOUND OR CLANG_FOUND))
message(STATUS "Using LLVMConfig.cmake in: ${LLVM_DIR}")
message(STATUS "Found CLANG ${CLANG_PACKAGE_VERSION}")
if(LLVM_PACKAGE_VERSION VERSION_LOWER_EQUAL "8.0.0")
set(ENABLE_LLVM_TESTCASES 1)
endif()
endif()
if(ENABLE_LLVM_TESTCASES)
include_directories(${LLVM_INCLUDE_DIRS})
add_definitions(${LLVM_DEFINITIONS})
......
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