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
898b012a9bf388590c4be7f526815b5ab74feca1 #1288
Closes #18563
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()