From 37a451409a519aa988fa6ff3125441f28d7d93d8 Mon Sep 17 00:00:00 2001 From: Markus Mertama Date: Sun, 22 Dec 2024 12:20:11 +0200 Subject: [PATCH] upadte CMAKEDOC_DIR --- gempyrelib/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gempyrelib/CMakeLists.txt b/gempyrelib/CMakeLists.txt index bda03da..575ac7e 100644 --- a/gempyrelib/CMakeLists.txt +++ b/gempyrelib/CMakeLists.txt @@ -425,8 +425,8 @@ if(PEDANTIC_WARNINGS) endif() if(DOXYGEN) - cmake_path(ABSOLUTE_PATH CMAKEDOC_DIR NORMALIZE OUTPUT_VARIABLE CD_DIR) - if (EXISTS "${CD_DIR}") + if (DEFINED CMAKEDOC_DIR) + cmake_path(ABSOLUTE_PATH CMAKEDOC_DIR NORMALIZE OUTPUT_VARIABLE CD_DIR) message("Using local Cmakedoc ${CD_DIR}") include("${CD_DIR}/cmakedoc.cmake") else()