Skip to content

Commit

Permalink
[ci] Try to improve whole-archive cmake compat
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Nov 14, 2024
1 parent 8989a3f commit 131bbd1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
7 changes: 2 additions & 5 deletions src/plugins/score-plugin-analysis/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,8 @@ target_compile_definitions(score_plugin_analysis PRIVATE USE_OSSIA_FFT=1)
target_include_directories(score_plugin_analysis PRIVATE "${3RDPARTY_FOLDER}/Gist/src")
target_link_libraries(score_plugin_analysis PUBLIC score_plugin_engine score_plugin_avnd)
if(TARGET kfr)
target_link_libraries(score_plugin_analysis
PUBLIC
"$<BUILD_INTERFACE:$<LINK_LIBRARY:WHOLE_ARCHIVE,kfr>>"
"$<BUILD_INTERFACE:$<LINK_LIBRARY:WHOLE_ARCHIVE,kfr_dsp>>"
)
link_whole_archive(score_plugin_analysis PRIVATE kfr)
link_whole_archive(score_plugin_analysis PRIVATE kfr_dsp)
list(APPEND SCORE_FEATURES_LIST analysis_kfr)
endif()
setup_score_plugin(score_plugin_analysis)
Expand Down
8 changes: 4 additions & 4 deletions src/plugins/score-plugin-avnd/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ target_link_libraries(avnd_halp_module PRIVATE
if(TARGET kfr_dft)
target_link_libraries(avnd_halp_module PRIVATE
"$<BUILD_INTERFACE:kfr>"
"$<BUILD_INTERFACE:$<LINK_LIBRARY:WHOLE_ARCHIVE,kfr_dft>>"
"$<BUILD_INTERFACE:$<LINK_LIBRARY:WHOLE_ARCHIVE,kfr_dsp>>"
)
link_whole_archive(avnd_halp_module PRIVATE kfr_dft)
link_whole_archive(avnd_halp_module PRIVATE kfr_dsp)
endif()
if(TARGET score_plugin_gfx)
target_link_libraries(avnd_halp_module PUBLIC score_plugin_gfx)
Expand Down Expand Up @@ -330,9 +330,9 @@ target_link_libraries(score_plugin_avnd
if(TARGET kfr_dft)
target_link_libraries(score_plugin_avnd PRIVATE
"$<BUILD_INTERFACE:kfr>"
"$<BUILD_INTERFACE:$<LINK_LIBRARY:WHOLE_ARCHIVE,kfr_dft>>"
"$<BUILD_INTERFACE:$<LINK_LIBRARY:WHOLE_ARCHIVE,kfr_dsp>>"
)
link_whole_archive(score_plugin_avnd PRIVATE kfr_dft)
link_whole_archive(score_plugin_avnd PRIVATE kfr_dsp)
endif()
if(TARGET score_plugin_gfx)
target_link_libraries(score_plugin_avnd PUBLIC score_plugin_gfx)
Expand Down

0 comments on commit 131bbd1

Please sign in to comment.