mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-24 15:23:52 +02:00
Fixes wxwidgets fixup script
This commit is contained in:
committed by
Dmitry Vedenko
parent
64cfcb4298
commit
65886f5c2c
@@ -1,4 +1,10 @@
|
||||
if( ${_OPT}use_wxwidgets STREQUAL "system" )
|
||||
if( ${_OPT}use_wxwidgets STREQUAL "system" OR NOT ${_OPT}conan_enabled )
|
||||
# DV: find_package will be scoped, as FindwxWidgets.cmake is rather outdated.
|
||||
# Still - let's perform the sanity check first.
|
||||
if( NOT wxWidgets_FOUND )
|
||||
find_package( wxWidgets REQUIRED COMPONENTS adv base core html qa xml net )
|
||||
endif()
|
||||
|
||||
if( NOT TARGET wxwidgets::wxwidgets )
|
||||
add_library( wxwidgets::wxwidgets INTERFACE IMPORTED GLOBAL)
|
||||
endif()
|
||||
@@ -74,6 +80,8 @@ if( ${_OPT}use_wxwidgets STREQUAL "system" )
|
||||
|
||||
set( toolkit "${wxWidgets_LIBRARIES}" )
|
||||
|
||||
message(STATUS "Trying to retrieve GTK version from ${toolkit}")
|
||||
|
||||
if( "${toolkit}" MATCHES ".*gtk2.*" )
|
||||
set( gtk gtk+-2.0 )
|
||||
set( glib glib-2.0 )
|
||||
|
||||
Reference in New Issue
Block a user