mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 04:40:18 -05:00
Merge topic 'cmake-e-rm'
2d0100fac7replace remove and remove_directory with rm in tests5239fc5c75cmake -E: Add rm with improved semantics over remove and remove_directory Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3949
This commit is contained in:
@@ -47,7 +47,7 @@ set(CMAKE_C_LINK_EXECUTABLE "<CMAKE_C_COMPILER> <FLAGS> <OBJECTS> -o <TARGET> <C
|
||||
|
||||
# needs sdcc 2.7.0 + sddclib from cvs
|
||||
set(CMAKE_C_CREATE_STATIC_LIBRARY
|
||||
"\"${CMAKE_COMMAND}\" -E remove <TARGET>"
|
||||
"\"${CMAKE_COMMAND}\" -E rm -f <TARGET>"
|
||||
"<CMAKE_AR> -a <TARGET> <LINK_FLAGS> <OBJECTS> ")
|
||||
|
||||
# not supported by sdcc
|
||||
|
||||
@@ -124,7 +124,7 @@ macro(__windows_compiler_gnu lang)
|
||||
string(REPLACE "<OBJECTS>" "-Wl,--whole-archive <OBJECT_DIR>/objects.a -Wl,--no-whole-archive"
|
||||
CMAKE_${lang}_${rule} "${CMAKE_${lang}_${rule}}")
|
||||
set(CMAKE_${lang}_${rule}
|
||||
"<CMAKE_COMMAND> -E remove -f <OBJECT_DIR>/objects.a"
|
||||
"<CMAKE_COMMAND> -E rm -f <OBJECT_DIR>/objects.a"
|
||||
"<CMAKE_AR> cr <OBJECT_DIR>/objects.a <OBJECTS>"
|
||||
"${CMAKE_${lang}_${rule}}"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user