Fix Doxygen under Windows

The CMakeLists.txt file calls Doxygen and redirects its output to
/dev/null to suppress it. However, for Windows, you need to redirect it
to "NUL:" otherwise, a build error will occur.
This commit is contained in:
raspopov authored and Jon Shallow committed 2025-10-02 10:59:21 +01:00
1 parent 8f9a73e397
commit 1c1c9c6910
1 file changed
+1 -1
+1 -1
View File
@@ -973,7 +973,7 @@ if(ENABLE_DOCS)
# application
add_custom_target(
doc_doxygen ALL
COMMAND ${DOXYGEN_EXECUTABLE} -u > /dev/null 2>&1
COMMAND ${DOXYGEN_EXECUTABLE} -u > $<IF:$<PLATFORM_ID:Windows>,NUL,/dev/null> 2>&1
COMMAND ${DOXYGEN_EXECUTABLE} ${DOXYGEN_OUT}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Generating API documentation with Doxygen"