diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2022-02-04 18:14:51 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-02-08 21:31:02 +0000 |
commit | 9f6ebba4e5587d3617a58032bdce57723630a2c8 (patch) | |
tree | 443f7e390e9c6d9687b8def8e0a082fc51b5dd03 | |
parent | 93f55ee78ab560bedca7fd955fd5769396ace18c (diff) |
shiboken6: Check the clang version during configure
Fixes: PYSIDE-1806
Change-Id: I120e407d07f20f15b2120fd2285afc47a73f85ba
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
(cherry picked from commit 66129dacde6c94da8cd470abc39e5801f80564b7)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | sources/shiboken6/cmake/ShibokenHelpers.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sources/shiboken6/cmake/ShibokenHelpers.cmake b/sources/shiboken6/cmake/ShibokenHelpers.cmake index 5897f4bd2..9dae0e370 100644 --- a/sources/shiboken6/cmake/ShibokenHelpers.cmake +++ b/sources/shiboken6/cmake/ShibokenHelpers.cmake @@ -128,6 +128,11 @@ macro(setup_clang) endif() find_package(Clang CONFIG REQUIRED) + # Need to explicitly handle the version check, because the Clang package doesn't. + if (LLVM_PACKAGE_VERSION AND LLVM_PACKAGE_VERSION VERSION_LESS "9.0") + message(FATAL_ERROR "You need LLVM version 9.0 or greater to build.") + endif() + # CLANG_LIBRARY is read out from the cmake cache to deploy libclang get_target_property(CLANG_BUILD_TYPE libclang IMPORTED_CONFIGURATIONS) get_target_property(CLANG_LIBRARY_NAME libclang IMPORTED_LOCATION_${CLANG_BUILD_TYPE}) |