use the right RetroConsole library on Carbon (fixes #65)

This commit is contained in:
Wolfgang Thaller 2019-01-13 22:53:26 +01:00
parent 2999ed8613
commit f8a06b6d68

View File

@ -49,7 +49,11 @@ function(add_application name)
list(APPEND ARGS_MAKEAPPL_ARGS -DBREAK_ON_ENTRY) list(APPEND ARGS_MAKEAPPL_ARGS -DBREAK_ON_ENTRY)
endif() endif()
if(${ARGS_CONSOLE}) if(${ARGS_CONSOLE})
if(TARGET RetroConsole OR NOT (CMAKE_SYSTEM_NAME MATCHES RetroCarbon))
target_link_libraries(${name} RetroConsole) target_link_libraries(${name} RetroConsole)
else()
target_link_libraries(${name} RetroConsoleCarbon)
endif()
# RetroConsole library uses C++: # RetroConsole library uses C++:
set_target_properties(${name} PROPERTIES LINKER_LANGUAGE CXX) set_target_properties(${name} PROPERTIES LINKER_LANGUAGE CXX)