diff -r 05a55c15585c -r 2a4ddd1a0fed CMakeLists.txt --- a/CMakeLists.txt Sat Mar 23 10:11:35 2019 +0100 +++ b/CMakeLists.txt Sat Mar 23 08:20:27 2019 +0100 @@ -159,12 +159,11 @@ # This must come before FINDs for tiff, jpeg, png, zlib to enable # finding the wxWidgets distributions of those packages (Win32 only). IF(WIN32) - SET(wxWidgets_USE_LIBS base core aui xrc html xml adv gl qa) + FIND_PACKAGE(wxWidgets REQUIRED base core aui xrc html xml adv gl qa) ELSE() # Unix needs also wxWidgets net library - SET(wxWidgets_USE_LIBS base core aui xrc html xml adv gl net qa) + FIND_PACKAGE(wxWidgets REQUIRED base core aui xrc html xml adv gl net qa) ENDIF() -FIND_PACKAGE(wxWidgets REQUIRED) # hugin requires wxwidgets 3.0 or above IF (UNIX)