From ae7e8cbcbad7ffad21de99f2d9c62a72cfa81470 Mon Sep 17 00:00:00 2001 From: Alvin Moore Date: Wed, 15 Jan 2020 02:51:16 -0800 Subject: [PATCH] Fixed syntax --- cmake/FlowCommands.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/FlowCommands.cmake b/cmake/FlowCommands.cmake index 2f757d3e50..0b8f041010 100644 --- a/cmake/FlowCommands.cmake +++ b/cmake/FlowCommands.cmake @@ -134,7 +134,8 @@ function(strip_debug_symbols target) set(out_files "${out_file}") if(is_exec AND NOT APPLE) add_custom_command(OUTPUT "${out_file}.debug" - COMMAND objcopy --verbose --only-keep-debug $ "${out_file}.debug" &> "${out_file}.objcopy1" && if [ -f "${out_file}" ]; then objcopy --verbose --add-gnu-debuglink="${out_file}.debug" "${out_file}" &> "${out_file}.objcopy2"; fi + COMMAND objcopy --verbose --only-keep-debug $ "${out_file}.debug" &> "${out_file}.objcopy1" + COMMAND objcopy --verbose --add-gnu-debuglink="${out_file}.debug" "${out_file}" &> "${out_file}.objcopy2" COMMENT "Copy debug symbols to ${out_name}.debug") list(APPEND out_files "${out_file}.debug") endif()