mirror of
https://github.com/curl/curl.git
synced 2026-08-01 13:48:19 +03:00
cmake: replace deprecated remove command with rm and pass arg safely
All curl-supported CMake versions support the modern method, along with the `--` marker. Also: - make sure to pass `-f` to not fail if the file is missing, as before this patch. - drop now redundant `OUTPUT_QUIET`, `ERROR_QUIET` and error handling in `cmake_uninstall`. - move filename to end of the error message for readability. - GHA/linux: test these two 'clean' targets in the aws-lc job. Refs: https://cmake.org/cmake/help/v4.4/manual/cmake.1.html#cmdoption-cmake-E-arg-remove https://cmake.org/cmake/help/v3.18/manual/cmake.1.html#run-a-command-line-tool Closes #22193
This commit is contained in:
parent
a7e8016fa2
commit
6d008352c6
3 changed files with 10 additions and 12 deletions
|
|
@ -39,7 +39,7 @@ if(NOT _CURL_SKIP_BUILD_CERTS)
|
|||
endif()
|
||||
|
||||
add_custom_target(clean-certs
|
||||
COMMAND ${CMAKE_COMMAND} -E remove ${GENERATEDCERTS}
|
||||
COMMAND ${CMAKE_COMMAND} -E rm -f ${GENERATEDCERTS}
|
||||
"test-*.csr"
|
||||
"test-*.der"
|
||||
"test-*.keyenc"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue