Fix wxWidgets COMPONENTS specification, deprecated usage broken with CMake 3.14

Current FindWxWidgets.cmake allows to specify OPTIONAL components, unfortunately
this broke the (deprecated) use of wxWidgets_USE_LIBS.

Fixes: #779
This commit is contained in:
StefanBruens 2019-07-02 20:37:02 +02:00 committed by Robert Osfield
parent 634bd7f12d
commit 7dbcb4b7d3

View File

@ -786,9 +786,7 @@ IF (BUILD_OSG_EXAMPLES AND NOT ANDROID)
FIND_PACKAGE(FLTK)
FIND_PACKAGE(FOX)
SET(wxWidgets_USE_LIBS base core gl net)
FIND_PACKAGE(wxWidgets)
FIND_PACKAGE(wxWidgets COMPONENTS base core gl net)
ENDIF(BUILD_OSG_EXAMPLES AND NOT ANDROID)