mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-24 21:05:40 +02:00
cmake: doc: require 'scdoc' and 'gzip'
This commit is contained in:
parent
bed2c071e5
commit
0d8765da1f
1 changed files with 7 additions and 0 deletions
|
@ -3,6 +3,13 @@ cmake_minimum_required(VERSION 3.13)
|
|||
find_program(SCDOC_EXECUTABLE scdoc)
|
||||
find_program(GZIP_EXECUTABLE gzip)
|
||||
|
||||
if (SCDOC_EXECUTABLE STREQUAL "SCDOC_EXECUTABLE-NOTFOUND")
|
||||
message(FATAL_ERROR "scdoc not found; required to build man pages")
|
||||
endif ()
|
||||
if (GZIP_EXECUTABLE STREQUAL "GZIP_EXECUTABLE-NOTFOUND")
|
||||
message(FATAL_ERROR "gzip not found; required to build man pages")
|
||||
endif ()
|
||||
|
||||
function(add_man_pages)
|
||||
foreach (src ${ARGN})
|
||||
string(REPLACE ".scd" ".gz" man "${src}")
|
||||
|
|
Loading…
Add table
Reference in a new issue