From ea91c021f6d790adaa1b89c6b40342dd2ef8cd0d Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Sun, 24 Oct 2021 22:50:08 +0200 Subject: CMakeLists.txt: Fix how we evaluate the result for find_program for gtkdoc-scan. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 7036e62..4ee060c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -67,7 +67,7 @@ pkg_check_modules(PROJECT_DEPS REQUIRED ${DEPS}) if (ENABLE_GTKDOC) find_program (GTKDOC "gtkdoc-scan") - if (NOT GTKDOC_FOUND) + if (NOT GTKDOC) message(WARNING "Building the gtk-doc API documentation is enabled, but the gtkdoc-scan executable has not been found. Disabling API documentation building, although requested.") set (ENABLE_GTKDOC OFF) endif() -- cgit v1.2.3