diff --git a/JITImpl/LLVM/CMakeLists.txt b/JITImpl/LLVM/CMakeLists.txt index 12672ff33b..eff7c225ec 100644 --- a/JITImpl/LLVM/CMakeLists.txt +++ b/JITImpl/LLVM/CMakeLists.txt @@ -44,9 +44,15 @@ IF(NOT DEFINED ENV{Clang_DIR}) SET(ENV{Clang_DIR} $ENV{LLVM_DIR}) ENDIF() +FIND_PACKAGE(LLVM 11 CONFIG QUIET) +IF(NOT LLVM_FOUND) + FIND_PACKAGE(LLVM 11.1 CONFIG QUIET) +ENDIF() -FIND_PACKAGE(LLVM 11 CONFIG) -FIND_PACKAGE(Clang 11 CONFIG) +FIND_PACKAGE(Clang 11 CONFIG QUIET) +IF(NOT Clang_FOUND) + FIND_PACKAGE(Clang 11.1 CONFIG QUIET) +ENDIF() OPTION(ETISS_LINK_CLANG_DYLIB "Link against the clang dynamic library" ${CLANG_LINK_CLANG_DYLIB}) OPTION(ETISS_LINK_LLVM_DYLIB "Link against the llvm dynamic library" ${LLVM_LINK_LLVM_DYLIB})