1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-04-30 15:49:41 +02:00

Only add values if they were found

This commit is contained in:
Leland Lucius 2020-05-22 22:49:08 -05:00
parent e72634fb9d
commit 8756258e55

View File

@ -126,20 +126,28 @@ else()
# properties and merge them into the wxWidgets target
foreach( lib adv base core html net qa xml )
get_target_property( value ${lib} INTERFACE_INCLUDE_DIRECTORIES )
list( APPEND INCLUDES ${value} )
list( REMOVE_DUPLICATES INCLUDES )
if( value )
list( APPEND INCLUDES ${value} )
list( REMOVE_DUPLICATES INCLUDES )
endif()
get_target_property( value ${lib} INTERFACE_COMPILE_DEFINITIONS )
list( APPEND DEFINES ${value} )
list( REMOVE_DUPLICATES DEFINES )
if( value )
list( APPEND DEFINES ${value} )
list( REMOVE_DUPLICATES DEFINES )
endif()
get_target_property( value ${lib} INTERFACE_COMPILE_OPTIONS )
list( APPEND COPTS ${value} )
list( REMOVE_DUPLICATES COPTS )
if( value )
list( APPEND COPTS ${value} )
list( REMOVE_DUPLICATES COPTS )
endif()
get_target_property( value ${lib} INTERFACE_LINK_LIBRARIES )
list( APPEND LIBRARIES ${lib} ${value} )
list( REMOVE_DUPLICATES LIBRARIES )
if( value)
list( APPEND LIBRARIES ${lib} ${value} )
list( REMOVE_DUPLICATES LIBRARIES )
endif()
endforeach()
# Do NOT split the generator expressions across multiple lines here.