mirror of
https://github.com/curl/curl.git
synced 2026-04-15 01:01:41 +03:00
cmake: fix building docs when the base directory contains .3
Fixing:
```
ninja: error: '<...>/basedir.md/_bld/docs/libcurl/libcurl-symbols.md',
needed by 'docs/libcurl/curl_easy_cleanup.3', missing and no known rule to make it
```
Reported-by: Nir Azkiel
Fixes #18560
Follow-up to 898b012a9b #1288
Closes #18563
This commit is contained in:
parent
f6ddc1fc1e
commit
619307feb0
1 changed files with 3 additions and 5 deletions
|
|
@ -52,11 +52,9 @@ function(curl_add_manual_pages _listname)
|
|||
endif()
|
||||
|
||||
list(APPEND _rofffiles "${CMAKE_CURRENT_BINARY_DIR}/${_file}")
|
||||
if(_file STREQUAL "libcurl-symbols.3")
|
||||
# Special case, an auto-generated file.
|
||||
string(REPLACE ".3" ".md" _mdfile "${CMAKE_CURRENT_BINARY_DIR}/${_file}")
|
||||
else()
|
||||
string(REPLACE ".3" ".md" _mdfile "${_file}")
|
||||
string(REPLACE ".3" ".md" _mdfile "${_file}")
|
||||
if(_file STREQUAL "libcurl-symbols.3") # Special case for auto-generated file
|
||||
set(_mdfile "${CMAKE_CURRENT_BINARY_DIR}/${_mdfile}")
|
||||
endif()
|
||||
list(APPEND _mdfiles "${_mdfile}")
|
||||
endforeach()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue