Skip to content

Commit d8b7fcf

Browse files
authored
docs(usage): cmake example uses TMP_CPP_FILE
The Cmake example for header-only libraries compiles by replacing `OUTPUT_FILE` with `TMP_CPP_FILE`.
1 parent 5750b79 commit d8b7fcf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/modules/ROOT/pages/usage.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,9 @@ if (MY_PROJECT_MRDOCS_BUILD)
129129
130130
# Create a temporary source file that includes all header files
131131
set(TEMP_CPP_FILE "${CMAKE_CURRENT_BINARY_DIR}/all_headers.cpp")
132-
file(WRITE ${OUTPUT_FILE} "// This file is generated automatically by CMake\n\n")
132+
file(WRITE ${TEMP_CPP_FILE} "// This file is generated automatically by CMake\n\n")
133133
foreach(HEADER_FILE ${HEADER_FILES_LIST})
134-
file(APPEND ${OUTPUT_FILE} "#include \"${HEADER_FILE}\"\n")
134+
file(APPEND ${TEMP_CPP_FILE} "#include \"${HEADER_FILE}\"\n")
135135
endforeach()
136136
137137
# Create a custom target for MrDocs

0 commit comments

Comments
 (0)