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.
This commit is contained in:
baldurk
2020-09-01 17:20:52 +01:00
parent f32262ad24
commit 3b9b0d8887
+1 -1
View File
@@ -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)