From d40b96fa6612987e6ad3ed1cc51fd719d6658880 Mon Sep 17 00:00:00 2001 From: Scott K Logan Date: Tue, 30 Jan 2024 16:07:42 -0600 Subject: [PATCH] Fix version variable in reference manual PDF filename (#1363) The variable SDF_VERSION_FULL is a C preprocessor macro which is set to the value of the CMake variable PROJECT_VERSION_FULL in config.hh.in. It is not defined as a CMake variable itself, and currently evaluates to an empty string resulting in refman.pdf being renamed to sdf-.pdf. Signed-off-by: Scott K Logan --- doc/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index 019149959..66d4caa6a 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -15,7 +15,7 @@ if (DOXYGEN_FOUND) ${CMAKE_BINARY_DIR}/doxygen/html/search COMMAND make -C ${CMAKE_BINARY_DIR}/doxygen/latex COMMAND mv ${CMAKE_BINARY_DIR}/doxygen/latex/refman.pdf - ${CMAKE_BINARY_DIR}/doxygen/latex/sdf-${SDF_VERSION_FULL}.pdf + ${CMAKE_BINARY_DIR}/doxygen/latex/sdf-${PROJECT_VERSION_FULL}.pdf COMMENT "Generating API documentation with Doxygen" VERBATIM) endif()