← Commit list

619307feb0

Viktor Szakats
Viktor Szakats
2025-09-16
FAILED Duration: 269s

Subject

cmake: fix building docs when the base directory contains `.3`

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

docs/libcurl/CMakeLists.txt+3 -5
@@ -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()