mirror of
https://github.com/curl/curl.git
synced 2026-05-04 17:09:54 +03:00
cmake: defer building unitprotos.h till a test target needs it
Follow-up to c9bb9cd165 #17750
Ref: https://github.com/curl/curl/pull/17750#issuecomment-3133749477
Closes #18086
This commit is contained in:
parent
00887aee8c
commit
daa5b044b8
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ if(CURL_BUILD_TESTING)
|
|||
${CSOURCES} > "${CMAKE_CURRENT_BINARY_DIR}/unitprotos.h"
|
||||
DEPENDS "${PROJECT_SOURCE_DIR}/scripts/extract-unit-protos" ${CSOURCES}
|
||||
VERBATIM)
|
||||
add_custom_target(curlu-unitprotos ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/unitprotos.h")
|
||||
add_custom_target(curlu-unitprotos DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/unitprotos.h")
|
||||
endif()
|
||||
|
||||
## Library definition
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue