diff options
author | Alexander Akulich <akulichalexander@gmail.com> | 2019-09-27 18:25:50 +0300 |
---|---|---|
committer | Alexandr Akulich <akulichalexander@gmail.com> | 2019-10-01 14:31:30 +0000 |
commit | 0907bc8658fdb82efdaa07013ae164642856938a (patch) | |
tree | 08d520480c85f02e1545bf0b8f7a2b17296ffcd9 | |
parent | 736eef24ca9263339f4c576cba5d4b20fe188045 (diff) | |
download | qt-creator-0907bc8658fdb82efdaa07013ae164642856938a.tar.gz |
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 <cristian.adam@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
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) |