From c208bacbd6ad21201dcddad2480f7bc86bc6be7c Mon Sep 17 00:00:00 2001 From: Wolfgang Thaller Date: Thu, 24 Jan 2019 18:49:06 +0100 Subject: [PATCH] reinstate DEBUGBREAK flag for add_application --- cmake/add_application.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/add_application.cmake b/cmake/add_application.cmake index e711a49de7..8925e7de53 100644 --- a/cmake/add_application.cmake +++ b/cmake/add_application.cmake @@ -46,7 +46,7 @@ function(add_application name) add_executable(${name} ${files} ${rez_files}) if(${ARGS_DEBUGBREAK}) - list(APPEND ARGS_MAKEAPPL_ARGS -DBREAK_ON_ENTRY) + target_link_options(${name} PRIVATE "LINKER:--defsym=__break_on_entry=1") endif() if(${ARGS_CONSOLE}) if(TARGET RetroConsole OR NOT (CMAKE_SYSTEM_NAME MATCHES RetroCarbon))