From ec493dbda2323e055c8861503d533870a697ce73 Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Thu, 30 Mar 2017 14:27:51 +0200 Subject: 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 --- docs/libcurl/CMakeLists.txt | 4 ++-- docs/libcurl/opts/CMakeLists.txt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'docs/libcurl') diff --git a/docs/libcurl/CMakeLists.txt b/docs/libcurl/CMakeLists.txt index bdbcad45f..0b32c5054 100644 --- a/docs/libcurl/CMakeLists.txt +++ b/docs/libcurl/CMakeLists.txt @@ -49,7 +49,7 @@ add_manual_pages(man_MANS) string(REPLACE ".3" ".html" HTMLPAGES "${man_MANS}") string(REPLACE ".3" ".pdf" PDFPAGES "${man_MANS}") -add_custom_target(html DEPENDS "${HTMLPAGES}") -add_custom_target(pdf DEPENDS "${PDFPAGES}") +add_custom_target(html DEPENDS ${HTMLPAGES}) +add_custom_target(pdf DEPENDS ${PDFPAGES}) add_subdirectory(opts) diff --git a/docs/libcurl/opts/CMakeLists.txt b/docs/libcurl/opts/CMakeLists.txt index 24c011180..709d3e4b8 100644 --- a/docs/libcurl/opts/CMakeLists.txt +++ b/docs/libcurl/opts/CMakeLists.txt @@ -6,7 +6,7 @@ add_manual_pages(man_MANS) string(REPLACE ".3" ".html" HTMLPAGES "${man_MANS}") string(REPLACE ".3" ".pdf" PDFPAGES "${man_MANS}") -add_custom_target(opts-html DEPENDS "${HTMLPAGES}") -add_custom_target(opts-pdf DEPENDS "${PDFPAGES}") +add_custom_target(opts-html DEPENDS ${HTMLPAGES}) +add_custom_target(opts-pdf DEPENDS ${PDFPAGES}) add_dependencies(html opts-html) add_dependencies(pdf opts-pdf) -- cgit v1.2.3