aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2021-03-10 10:21:34 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-03-10 15:47:22 +0000
commit4772406328d0e1b5b2320ada39924110455cac63 (patch)
treede2ebbbecf0282957c620a04273cc90692bc94d3
parentc5339728e495b76eaae95534929ef0580e32d39b (diff)
shiboken6: Do not hardcode libclang's build type
Query and use libclang's build type instead. Fixes: PYSIDE-1515 Change-Id: If78908040be27530593a36db1bdb76649c167d82 Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 8088fe1a3ab13faff3acecaa504e428a49edd58d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--sources/shiboken6/data/shiboken_helpers.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/sources/shiboken6/data/shiboken_helpers.cmake b/sources/shiboken6/data/shiboken_helpers.cmake
index f363bbb73..a6ef47cc1 100644
--- a/sources/shiboken6/data/shiboken_helpers.cmake
+++ b/sources/shiboken6/data/shiboken_helpers.cmake
@@ -119,7 +119,8 @@ macro(setup_clang)
find_package(Clang CONFIG REQUIRED)
# CLANG_LIBRARY is read out from the cmake cache to deploy libclang
- get_target_property(CLANG_LIBRARY_NAME libclang IMPORTED_LOCATION_RELEASE)
+ get_target_property(CLANG_BUILD_TYPE libclang IMPORTED_CONFIGURATIONS)
+ get_target_property(CLANG_LIBRARY_NAME libclang IMPORTED_LOCATION_${CLANG_BUILD_TYPE})
set(CLANG_LIBRARY "${CLANG_LIBRARY_NAME}" CACHE FILEPATH "libclang")
message(STATUS "CLANG: ${Clang_DIR}, ${CLANG_LIBRARY} detected")
endmacro()