From 0907bc8658fdb82efdaa07013ae164642856938a Mon Sep 17 00:00:00 2001 From: Alexander Akulich Date: Fri, 27 Sep 2019 18:25:50 +0300 Subject: CMake Build: Fix LLVM lookup for cases when many versions available If calling both find_package(Clang) and find_package(LLVM), call find_package(Clang) first to get the currently active Clang version by default with a consistent version of LLVM. (Similar to the FindPythonInterp/PythonLibs ordering) Change-Id: Ib6da04e0fb0ffc1fe67a8eafb0c5f04abbb36b6c Reviewed-by: Cristian Adam Reviewed-by: Tobias Hunger --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 41278e8d93..a967375571 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -97,8 +97,8 @@ else() endif() install(TARGETS OptionalSvg EXPORT QtCreator) -find_package(LLVM QUIET) find_package(Clang COMPONENTS libclang QUIET) +find_package(LLVM QUIET) if (APPLE) find_library(FWCoreFoundation CoreFoundation) -- cgit v1.2.1