diff --git a/cmake/Python/FindPySide2.cmake b/cmake/Python/FindPySide2.cmake index 4da6c6e..134f75c 100644 --- a/cmake/Python/FindPySide2.cmake +++ b/cmake/Python/FindPySide2.cmake @@ -16,9 +16,11 @@ # # You can install PySide2 from Qt repository with # pip3 install --index-url=https://download.qt.io/snapshots/ci/pyside//latest/ pyside2 --trusted-host download.qt.io -find_package(PkgConfig REQUIRED) -pkg_check_modules(PYSIDE2_PRIV pyside2 QUIET) +if(NOT WIN32) + find_package(PkgConfig REQUIRED) + pkg_check_modules(PYSIDE2_PRIV pyside2 QUIET) +endif() set(PYSIDE2_FOUND FALSE) if(PYSIDE2_PRIV_FOUND) diff --git a/cmake/Python/FindShiboken2.cmake b/cmake/Python/FindShiboken2.cmake index 60920ef..c2b95ce 100644 --- a/cmake/Python/FindShiboken2.cmake +++ b/cmake/Python/FindShiboken2.cmake @@ -16,8 +16,10 @@ # You can install Shiboken from Qt repository with # pip3 install --index-url=https://download.qt.io/snapshots/ci/pyside//latest/ shiboken2-generator --trusted-host download.qt.io -find_package(PkgConfig REQUIRED) -pkg_check_modules(SHIBOKEN2_PRIV shiboken2 QUIET) +if(NOT WIN32) + find_package(PkgConfig REQUIRED) + pkg_check_modules(SHIBOKEN2_PRIV shiboken2 QUIET) +endif() set(SHIBOKEN_FOUND FALSE)