Skip to content

Commit

Permalink
docs(usage): cmake example uses TMP_CPP_FILE
Browse files Browse the repository at this point in the history
The Cmake example for header-only libraries compiles by replacing `OUTPUT_FILE` with `TMP_CPP_FILE`.
  • Loading branch information
akrzemi1 authored Oct 3, 2024
1 parent 5750b79 commit d8b7fcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/modules/ROOT/pages/usage.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d8b7fcf

Please sign in to comment.