cmake: use host OS to decide about libcurl manpage batch size

Before this patch the targe OS was used, which prevented building
libcurl manpages in larger batches in cross-builds targeting e.g.
Windows.

Update the condition to use `CMAKE_HOST_UNIX` instead of `UNIX`.

This variable has been available since CMake 2.6.0:
176fe63d15

Follow-up to bb84f82476 #13207

Closes #14733
This commit is contained in:
Viktor Szakats 2024-08-30 00:25:46 +02:00
parent c280010d8b
commit e5f9050b26
No known key found for this signature in database
GPG Key ID: B5ABD165E2AEF201

View File

@ -27,7 +27,7 @@ include("${CMAKE_CURRENT_BINARY_DIR}/Makefile.inc.cmake")
function(add_manual_pages _listname)
# Maximum number of files per command to stay within shell/OS limits
if(UNIX)
if(CMAKE_HOST_UNIX)
set(_files_per_batch 10000)
else() # e.g. Windows with cmd.exe and other obsolete/unidentified shells
set(_files_per_batch 200)