cmake: move OUTPUT argument in the add_custom_command() line

For greppability.

Closes #17658
This commit is contained in:
Viktor Szakats 2025-06-17 21:08:02 +02:00
parent a282d89a8a
commit eb01ac3fc8
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
6 changed files with 8 additions and 16 deletions

View file

@ -31,8 +31,7 @@ if(LIB_SELECTED STREQUAL LIB_SHARED)
list(APPEND _bundle_extra ${CURLX_SRCS}) # Not exported from the libcurl shared build. Build a copy.
endif()
add_custom_command(
OUTPUT "${BUNDLE_SRC}"
add_custom_command(OUTPUT "${BUNDLE_SRC}"
COMMAND ${PERL_EXECUTABLE} "${PROJECT_SOURCE_DIR}/scripts/mk-unity.pl"
--include ${_bundle_extra} --test ${TESTFILES}
${CURL_MK_UNITY_OPTION} --srcdir "${CMAKE_CURRENT_SOURCE_DIR}" > "${BUNDLE_SRC}"