From 28e68adc755efce14f5db61b2775e2d1655fde6a Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Wed, 3 Mar 2021 00:07:12 -0600 Subject: [PATCH] [nostalgia/player] Cleanup dependency selection with generator expressions --- src/nostalgia/player/CMakeLists.txt | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/nostalgia/player/CMakeLists.txt b/src/nostalgia/player/CMakeLists.txt index 66c26844..d14c3729 100644 --- a/src/nostalgia/player/CMakeLists.txt +++ b/src/nostalgia/player/CMakeLists.txt @@ -6,12 +6,6 @@ add_executable( # enable LTO set_property(TARGET nostalgia PROPERTY INTERPROCEDURAL_OPTIMIZATION TRUE) -if(NOSTALGIA_BUILD_TYPE STREQUAL "GBA") - set(NOSTALGIA_PLAYER_DEPS "NostalgiaCore-GBA") -else() - set(NOSTALGIA_PLAYER_DEPS "NostalgiaCore-SDL") -endif() - if(COMMAND OBJCOPY_FILE) set_target_properties(nostalgia PROPERTIES @@ -26,7 +20,8 @@ endif() target_link_libraries( nostalgia NostalgiaWorld - ${NOSTALGIA_PLAYER_DEPS} + $<$:NostalgiaCore-GBA> + $<$:NostalgiaCore-SDL> ) install(