Prefer shared libs over static

This commit is contained in:
Leland Lucius 2020-04-06 07:31:32 -05:00
parent 2e1267582b
commit 5cd94707f8
1 changed files with 3 additions and 0 deletions

View File

@ -13,7 +13,10 @@ cmd_option( ${_OPT}use_wxwidgets
)
if( ${_OPT}use_wxwidgets STREQUAL "system" )
# Make sure shared libs are preferred over static
set( BUILD_SHARED_LIBS YES )
find_package(wxWidgets)
unset( BUILD_SHARED_LIBS )
endif()
if( wxWidgets_FOUND )