Commit 061bae27 authored by Kyle Auble's avatar Kyle Auble 💬
Browse files

cmake: Raise error level of missing gtk-doc deps

parent 327a7ce0
Pipeline #209354 failed with stages
in 3 minutes and 4 seconds
......@@ -206,16 +206,14 @@ if(ENABLE_GTK_DOC)
# Disable gtk-doc generation & warn if the package is missing
find_package(GtkDoc)
if(NOT GtkDoc_FOUND)
message("-- Warning: Install the gtk-doc package to generate GTK API documentation")
set(ENABLE_GTK_DOC OFF)
message(FATAL_ERROR "Install the gtk-doc package to generate GTK API documentation")
endif()
# NOTE: These Find<...> modules are deprecated, but the newer FindPython3 module requires CMake >=3.12
find_package(PythonInterp 3)
find_package(PythonLibs 3)
# Also disable gtk-doc generation & raise a warning if Python3 is missing
if(NOT (PYTHONINTERP_FOUND AND PYTHONLIBS_FOUND))
message("-- Warning: ENABLE_GTK_DOC requires a python3 interpreter and libraries.")
set(ENABLE_GTK_DOC OFF)
message(FATAL_ERROR "ENABLE_GTK_DOC requires a python3 interpreter and libraries.")
endif()
endif()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment