mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-01-22 11:48:10 +00:00
[client] cmake: replace -
with _
too
This commit is contained in:
parent
1128eb0e84
commit
58964ce317
1 changed files with 2 additions and 2 deletions
|
@ -5,8 +5,8 @@ function(make_object out_var)
|
||||||
file(RELATIVE_PATH out_f ${CMAKE_CURRENT_SOURCE_DIR} "${CMAKE_CURRENT_SOURCE_DIR}/${in_f}")
|
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_h "${CMAKE_CURRENT_BINARY_DIR}/${out_f}.h")
|
||||||
set(out_f "${CMAKE_CURRENT_BINARY_DIR}/${out_f}.o")
|
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_in "${CMAKE_CURRENT_SOURCE_DIR}/${in_f}")
|
||||||
string(REGEX REPLACE "[/.]" "_" sym_out "${in_f}")
|
string(REGEX REPLACE "[/.-]" "_" sym_out "${in_f}")
|
||||||
|
|
||||||
add_custom_command(OUTPUT ${out_f}
|
add_custom_command(OUTPUT ${out_f}
|
||||||
COMMAND ${CMAKE_LINKER} -r -b binary -o ${out_f} "${CMAKE_CURRENT_SOURCE_DIR}/${in_f}"
|
COMMAND ${CMAKE_LINKER} -r -b binary -o ${out_f} "${CMAKE_CURRENT_SOURCE_DIR}/${in_f}"
|
||||||
|
|
Loading…
Reference in a new issue