mirror of
https://github.com/moparisthebest/curl
synced 2024-12-24 17:18:48 -05:00
ec493dbda2
For some reason, CMake 2.8.12.2 did not expand the list argument in a single DEPENDS argument. Remove the quotes, so it gets expanded into multiple arguments for add_custom_command and add_custom_target. Fixes https://github.com/curl/curl/issues/1370 Closes #1372
13 lines
505 B
CMake
13 lines
505 B
CMake
set(MANPAGE "${CMAKE_BINARY_DIR}/docs/curl.1")
|
|
|
|
# Load DPAGES and OTHERPAGES from shared file
|
|
transform_makefile_inc("Makefile.inc" "${CMAKE_CURRENT_BINARY_DIR}/Makefile.inc.cmake")
|
|
include("${CMAKE_CURRENT_BINARY_DIR}/Makefile.inc.cmake")
|
|
|
|
add_custom_command(OUTPUT "${MANPAGE}"
|
|
COMMAND "${PERL_EXECUTABLE}" "${CMAKE_CURRENT_SOURCE_DIR}/gen.pl" mainpage "${CMAKE_CURRENT_SOURCE_DIR}" > "${MANPAGE}"
|
|
DEPENDS ${DPAGES} ${OTHERPAGES}
|
|
VERBATIM
|
|
)
|
|
add_custom_target(generate-curl.1 DEPENDS "${MANPAGE}")
|