From: Viktor Szakats Date: Mon, 30 Sep 2024 11:06:06 +0000 (+0200) Subject: cmake: readd `generate-curl.1` dependency for `src` just in case X-Git-Tag: curl-8_11_0~285 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18143579ba6e7154abe635919f25ae8e6df82973;p=thirdparty%2Fcurl.git cmake: readd `generate-curl.1` dependency for `src` just in case Trying to fix intermittent build failures with MSVC 2008: ``` unity_0.obj : error LNK2019: unresolved external symbol _showhelp referenced in function _tool_help unity_0.obj : error LNK2019: unresolved external symbol _hugehelp referenced in function _operate ``` https://ci.appveyor.com/project/curlorg/curl/builds/50700212/job/h3ekljnbccosej5k#L154 https://ci.appveyor.com/project/curlorg/curl/builds/50701615/job/61mkg9og1eooqli8#L155 Follow-up to 496da69aa0eb988ac92eb815742eb89b975ad83e #14883 Closes #15088 --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index aa2b658b54..1458826e39 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -35,6 +35,7 @@ if(ENABLE_CURL_MANUAL AND HAVE_MANUAL_TOOLS) COMMAND "${PERL_EXECUTABLE}" "${CMAKE_CURRENT_SOURCE_DIR}/mkhelp.pl" -c < "${CURL_ASCIIPAGE}" >> "tool_hugehelp.c" COMMAND ${CMAKE_COMMAND} -E echo "#endif /* HAVE_LIBZ */" >> "tool_hugehelp.c" DEPENDS + generate-curl.1 "${CMAKE_CURRENT_SOURCE_DIR}/mkhelp.pl" "${CMAKE_CURRENT_SOURCE_DIR}/tool_hugehelp.h" "${CURL_ASCIIPAGE}"