Skip to content

Commit

Permalink
Find and link Qt5Widgets for PYBINDINGS.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
vicpopov authored and Sergey Yershov committed Jan 9, 2019
1 parent 92e3469 commit 1f2bc65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1f2bc65

Please sign in to comment.