Make Shiboken2/PySide2 searches QUIET to avoid scary warnings

* By default cmake will print huge scary warnings if the packages aren't
  available instead of silently continuing and letting us check, which is a bad
  default for optional packages.
This commit is contained in:
baldurk
2020-09-10 11:49:16 +01:00
parent 7cd7616401
commit 10a0153511
+2 -5
View File
@@ -128,11 +128,8 @@ ExternalProject_Add(custom_swig
BUILD_COMMAND ${GENERATOR_MAKE} > /dev/null 2>&1
INSTALL_COMMAND ${GENERATOR_MAKE} install > /dev/null 2>&1)
# Lastly find PySide 2, optionally, for Qt5 Python bindings
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}")
find_package(Shiboken2)
find_package(PySide2)
find_package(Shiboken2 QUIET)
find_package(PySide2 QUIET)
set(PYTHON_LINK "${PYTHON_LIBRARY}")