From 1f2bc65f3aa2b14f827854fc66923c203ab81cfc Mon Sep 17 00:00:00 2001 From: Victor Popov Date: Tue, 8 Jan 2019 14:32:23 +0300 Subject: [PATCH] Find and link Qt5Widgets for PYBINDINGS. At least one PYBINDINGS module requires linking with Qt5Widgets: pytraffic. If we don't find this library, it won't be linked, and thus pytraffic won't work at all. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d550aaee77..f7210d85a0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -182,7 +182,7 @@ if (NOT PLATFORM_IPHONE AND NOT PLATFORM_ANDROID) message(FATAL_ERROR "Minimum supported Qt5 version is 5.5") endif() find_package(Qt5Network REQUIRED) - if (NOT SKIP_DESKTOP OR NOT SKIP_TESTS) + if (NOT SKIP_DESKTOP OR NOT SKIP_TESTS OR PYBINDINGS) find_package(Qt5Widgets) endif() if (NOT SKIP_DESKTOP)