From d8b7fcf4245e98d5935ebbb05c02d0aba62e3faa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrzej=20Krzemie=C5=84ski?= Date: Thu, 3 Oct 2024 17:21:38 +0200 Subject: [PATCH] docs(usage): cmake example uses TMP_CPP_FILE The Cmake example for header-only libraries compiles by replacing `OUTPUT_FILE` with `TMP_CPP_FILE`. --- docs/modules/ROOT/pages/usage.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/modules/ROOT/pages/usage.adoc b/docs/modules/ROOT/pages/usage.adoc index 141c6f5c9..4f6eb27d9 100644 --- a/docs/modules/ROOT/pages/usage.adoc +++ b/docs/modules/ROOT/pages/usage.adoc @@ -129,9 +129,9 @@ if (MY_PROJECT_MRDOCS_BUILD) # Create a temporary source file that includes all header files set(TEMP_CPP_FILE "${CMAKE_CURRENT_BINARY_DIR}/all_headers.cpp") - file(WRITE ${OUTPUT_FILE} "// This file is generated automatically by CMake\n\n") + file(WRITE ${TEMP_CPP_FILE} "// This file is generated automatically by CMake\n\n") foreach(HEADER_FILE ${HEADER_FILES_LIST}) - file(APPEND ${OUTPUT_FILE} "#include \"${HEADER_FILE}\"\n") + file(APPEND ${TEMP_CPP_FILE} "#include \"${HEADER_FILE}\"\n") endforeach() # Create a custom target for MrDocs