From 3b9b0d88874f91cd168d8605c4fcdc865757b83c Mon Sep 17 00:00:00 2001 From: baldurk Date: Tue, 1 Sep 2020 17:20:52 +0100 Subject: [PATCH] Check that both pyside2 and shiboken2 are found * It seems like packaging of these two is inconsistent, and pyside2 dev files being available doesn't always imply shiboken2 dev files are present. Be safe and check both. --- qrenderdoc/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qrenderdoc/CMakeLists.txt b/qrenderdoc/CMakeLists.txt index 57f5ffee2..b72f96af8 100644 --- a/qrenderdoc/CMakeLists.txt +++ b/qrenderdoc/CMakeLists.txt @@ -215,7 +215,7 @@ if(NOT BUILD_VERSION_DIST_CONTACT STREQUAL "") "DEFINES+=DISTRIBUTION_CONTACT='\\\\\"${BUILD_VERSION_DIST_CONTACT}\\\\\"'\n") endif() -if(PySide2_FOUND) +if(PySide2_FOUND AND Shiboken2_FOUND) message(STATUS "Building with PySide2 ${PySide2_VERSION} from ${PySide2_DIR}") get_target_property(SHIBOKEN2_INCLUDE_DIRS Shiboken2::libshiboken INTERFACE_INCLUDE_DIRECTORIES)