From 89ea4268cd609d6f14994783b5bdc917d1ba3f8e Mon Sep 17 00:00:00 2001 From: Hans Johnson Date: Tue, 24 Jun 2025 09:45:39 -0500 Subject: [PATCH] fix(cmake): Add missing POST_BUILD option to travis_doc target This addresses the following warning associated with CMP0175 policy introduced in CMake 3.31: ``` CMake Warning (dev) at CMakeLists.txt:165 (add_custom_command): Exactly one of PRE_BUILD, PRE_LINK, or POST_BUILD must be given. Assuming POST_BUILD to preserve backward compatibility. Policy CMP0175 is not set: add_custom_command() rejects invalid arguments. Run "cmake --help-policy CMP0175" for policy details. Use the cmake_policy command to set the policy and suppress this warning. This warning is for project developers. Use -Wno-dev to suppress it. ``` Co-authored-by: Jean-Christophe Fillion-Robin Co-authored-by: Rudi Heitbaum --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index be860c93d..384a90d75 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -163,6 +163,7 @@ endif() add_custom_target(travis_doc) add_custom_command(TARGET travis_doc + POST_BUILD COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/travis-doxygen.sh) if(RAPIDJSON_BUILD_EXAMPLES)