From ae1b8c8c4eb26dd677e39a91f65f8a17f6bdbbf2 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Tue, 9 May 2023 10:10:17 +0300 Subject: Test for the variable rather than it's expansion in cmake files Testing for the expansion was a cmake newbie mistake that can go wrong in weird ways, test for the variable instead, consistently. Don't try to be clever with for-loops, just test for each case separately. This makes it greppable as well. --- docs/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/CMakeLists.txt b/docs/CMakeLists.txt index cebf51ee6..1d216a089 100644 --- a/docs/CMakeLists.txt +++ b/docs/CMakeLists.txt @@ -3,7 +3,7 @@ find_program(PANDOC NAMES pandoc) add_subdirectory(man) find_package(Doxygen) -if (${DOXYGEN_FOUND}) +if (DOXYGEN_FOUND) # XXX API docs should be pre-built in tarballs file(GLOB headers ${CMAKE_SOURCE_DIR}/include/rpm/*.h) doxygen_add_docs(apidoc librpm/Doxyheader.h ${headers} -- cgit v1.2.1