mirror of
https://github.com/moparisthebest/curl
synced 2025-02-28 09:21:50 -05:00
cmake: fix build with cmake 2.8.12.2
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
This commit is contained in:
parent
e358a626f8
commit
ec493dbda2
@ -6,7 +6,7 @@ include("${CMAKE_CURRENT_BINARY_DIR}/Makefile.inc.cmake")
|
|||||||
|
|
||||||
add_custom_command(OUTPUT "${MANPAGE}"
|
add_custom_command(OUTPUT "${MANPAGE}"
|
||||||
COMMAND "${PERL_EXECUTABLE}" "${CMAKE_CURRENT_SOURCE_DIR}/gen.pl" mainpage "${CMAKE_CURRENT_SOURCE_DIR}" > "${MANPAGE}"
|
COMMAND "${PERL_EXECUTABLE}" "${CMAKE_CURRENT_SOURCE_DIR}/gen.pl" mainpage "${CMAKE_CURRENT_SOURCE_DIR}" > "${MANPAGE}"
|
||||||
DEPENDS "${DPAGES}" "${OTHERPAGES}"
|
DEPENDS ${DPAGES} ${OTHERPAGES}
|
||||||
VERBATIM
|
VERBATIM
|
||||||
)
|
)
|
||||||
add_custom_target(generate-curl.1 DEPENDS "${MANPAGE}")
|
add_custom_target(generate-curl.1 DEPENDS "${MANPAGE}")
|
||||||
|
@ -49,7 +49,7 @@ add_manual_pages(man_MANS)
|
|||||||
|
|
||||||
string(REPLACE ".3" ".html" HTMLPAGES "${man_MANS}")
|
string(REPLACE ".3" ".html" HTMLPAGES "${man_MANS}")
|
||||||
string(REPLACE ".3" ".pdf" PDFPAGES "${man_MANS}")
|
string(REPLACE ".3" ".pdf" PDFPAGES "${man_MANS}")
|
||||||
add_custom_target(html DEPENDS "${HTMLPAGES}")
|
add_custom_target(html DEPENDS ${HTMLPAGES})
|
||||||
add_custom_target(pdf DEPENDS "${PDFPAGES}")
|
add_custom_target(pdf DEPENDS ${PDFPAGES})
|
||||||
|
|
||||||
add_subdirectory(opts)
|
add_subdirectory(opts)
|
||||||
|
@ -6,7 +6,7 @@ add_manual_pages(man_MANS)
|
|||||||
|
|
||||||
string(REPLACE ".3" ".html" HTMLPAGES "${man_MANS}")
|
string(REPLACE ".3" ".html" HTMLPAGES "${man_MANS}")
|
||||||
string(REPLACE ".3" ".pdf" PDFPAGES "${man_MANS}")
|
string(REPLACE ".3" ".pdf" PDFPAGES "${man_MANS}")
|
||||||
add_custom_target(opts-html DEPENDS "${HTMLPAGES}")
|
add_custom_target(opts-html DEPENDS ${HTMLPAGES})
|
||||||
add_custom_target(opts-pdf DEPENDS "${PDFPAGES}")
|
add_custom_target(opts-pdf DEPENDS ${PDFPAGES})
|
||||||
add_dependencies(html opts-html)
|
add_dependencies(html opts-html)
|
||||||
add_dependencies(pdf opts-pdf)
|
add_dependencies(pdf opts-pdf)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user