From f8a06b6d68453664001bf8057a2d443312dac922 Mon Sep 17 00:00:00 2001 From: Wolfgang Thaller Date: Sun, 13 Jan 2019 22:53:26 +0100 Subject: [PATCH] use the right RetroConsole library on Carbon (fixes #65) --- cmake/add_application.cmake | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cmake/add_application.cmake b/cmake/add_application.cmake index f1a33d7503..e711a49de7 100644 --- a/cmake/add_application.cmake +++ b/cmake/add_application.cmake @@ -49,8 +49,12 @@ function(add_application name) list(APPEND ARGS_MAKEAPPL_ARGS -DBREAK_ON_ENTRY) endif() if(${ARGS_CONSOLE}) - target_link_libraries(${name} RetroConsole) - + if(TARGET RetroConsole OR NOT (CMAKE_SYSTEM_NAME MATCHES RetroCarbon)) + target_link_libraries(${name} RetroConsole) + else() + target_link_libraries(${name} RetroConsoleCarbon) + endif() + # RetroConsole library uses C++: set_target_properties(${name} PROPERTIES LINKER_LANGUAGE CXX) endif()