Commit b576771d authored by Tomaz  Canabrava's avatar Tomaz Canabrava

Be less restrictive with failures while searching for LLVM

Only fail if we actually did not find Clang, instead of failiing
while looking thru a list of clang versions.
parent 75af1881
Pipeline #1491 canceled with stage
in 2 minutes and 42 seconds
......@@ -37,13 +37,17 @@ foreach(version ${KNOWN_VERSIONS})
break()
endif ()
if (${Clang_FIND_REQUIRED})
find_package(LLVM ${version} REQUIRED)
else ()
find_package(LLVM ${version})
endif ()
find_package(LLVM ${version})
endforeach()
if (${Clang_FIND_REQUIRED})
if(NOT DEFINED Clang_FIND_VERSION)
message(SEND_ERROR "Could not find Clang.")
else()
message("Found version ${Clang_FIND_VERSION}")
endif()
endif()
set(CLANG_FOUND FALSE)
if (LLVM_FOUND AND LLVM_LIBRARY_DIRS)
......
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