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:
parent
634bd7f12d
commit
7dbcb4b7d3
@ -786,9 +786,7 @@ IF (BUILD_OSG_EXAMPLES AND NOT ANDROID)
|
|||||||
|
|
||||||
FIND_PACKAGE(FLTK)
|
FIND_PACKAGE(FLTK)
|
||||||
FIND_PACKAGE(FOX)
|
FIND_PACKAGE(FOX)
|
||||||
|
FIND_PACKAGE(wxWidgets COMPONENTS base core gl net)
|
||||||
SET(wxWidgets_USE_LIBS base core gl net)
|
|
||||||
FIND_PACKAGE(wxWidgets)
|
|
||||||
|
|
||||||
ENDIF(BUILD_OSG_EXAMPLES AND NOT ANDROID)
|
ENDIF(BUILD_OSG_EXAMPLES AND NOT ANDROID)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user