From 58964ce3175a0ca92b4c7e66aedb374d71b8af68 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Tue, 10 Aug 2021 02:35:16 +1000 Subject: [PATCH] [client] cmake: replace `-` with `_` too --- client/cmake/MakeObject.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/cmake/MakeObject.cmake b/client/cmake/MakeObject.cmake index e72bf3a5..a171ffd5 100644 --- a/client/cmake/MakeObject.cmake +++ b/client/cmake/MakeObject.cmake @@ -5,8 +5,8 @@ function(make_object out_var) file(RELATIVE_PATH out_f ${CMAKE_CURRENT_SOURCE_DIR} "${CMAKE_CURRENT_SOURCE_DIR}/${in_f}") set(out_h "${CMAKE_CURRENT_BINARY_DIR}/${out_f}.h") set(out_f "${CMAKE_CURRENT_BINARY_DIR}/${out_f}.o") - string(REGEX REPLACE "[/.]" "_" sym_in "${CMAKE_CURRENT_SOURCE_DIR}/${in_f}") - string(REGEX REPLACE "[/.]" "_" sym_out "${in_f}") + string(REGEX REPLACE "[/.-]" "_" sym_in "${CMAKE_CURRENT_SOURCE_DIR}/${in_f}") + string(REGEX REPLACE "[/.-]" "_" sym_out "${in_f}") add_custom_command(OUTPUT ${out_f} COMMAND ${CMAKE_LINKER} -r -b binary -o ${out_f} "${CMAKE_CURRENT_SOURCE_DIR}/${in_f}"