Skip to content

Commit

Permalink
Add wxwidgets::base to a list of base modules
Browse files Browse the repository at this point in the history
  • Loading branch information
crsib committed May 26, 2021
1 parent 9f59879 commit 851d8b2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmake-proxies/cmake-modules/AudacityFunctions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -356,12 +356,13 @@ function( audacity_module_fn NAME SOURCES IMPORT_TARGETS
)
endif()

if( "wxBase" IN_LIST IMPORT_TARGETS )
if( "wxBase" IN_LIST IMPORT_TARGETS OR "wxwidgets::base" IN_LIST IMPORT_TARGETS )
string( APPEND ATTRIBUTES " style=filled" )
endif()

export_symbol_define( export_symbol "${TARGET}" )
import_symbol_define( import_symbol "${TARGET}" )

list( APPEND DEFINES
PRIVATE "${export_symbol}"
INTERFACE "${import_symbol}"
Expand All @@ -374,9 +375,11 @@ function( audacity_module_fn NAME SOURCES IMPORT_TARGETS

# compute LIBRARIES
set( LIBRARIES )

foreach( IMPORT ${IMPORT_TARGETS} )
list( APPEND LIBRARIES "${IMPORT}" )
endforeach()

list( APPEND LIBRARIES ${ADDITIONAL_LIBRARIES} )

# list( TRANSFORM SOURCES PREPEND "${CMAKE_CURRENT_SOURCE_DIR}/" )
Expand Down

0 comments on commit 851d8b2

Please sign in to comment.