Skip to content

Commit

Permalink
cmake-format
Browse files Browse the repository at this point in the history
  • Loading branch information
JPenuchot committed Dec 3, 2021
1 parent 044d26a commit 3326788
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
5 changes: 2 additions & 3 deletions benchmarking.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,8 @@ function(
${subtarget_name} "${name}/${size}/${iteration}.json" "${source}"
"-DBENCHMARK_SIZE=${size}")

target_compile_options(
${subtarget_name}
PRIVATE -ftime-trace-granularity=1)
target_compile_options(${subtarget_name}
PRIVATE -ftime-trace-granularity=1)

add_dependencies(${name} ${subtarget_name})
endforeach()
Expand Down
7 changes: 3 additions & 4 deletions cmake/docs.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ find_package(Doxygen REQUIRED dot OPTIONAL_COMPONENTS mscgen dia)
# Documentation options
set(DOXYGEN_EXTRACT_ALL YES)
set(DOXYGEN_GENERATE_TREEVIEW YES)
set(DOXYGEN_EXCLUDE_PATTERNS */build/* */tests/* */build-docs/* )
set(DOXYGEN_EXCLUDE_PATTERNS */build/* */tests/* */build-docs/*)
set(DOXYGEN_USE_MDFILE_AS_MAINPAGE ${CMAKE_SOURCE_DIR}/readme.md)
set(DOXYGEN_EXAMPLE_PATH ${CMAKE_SOURCE_DIR})
set(DOXYGENT_DOT_TRANSPARENT YES)
Expand Down Expand Up @@ -33,9 +33,8 @@ doxygen_add_docs(docs ALL)

add_custom_target(
extract-api-doc
cmake-doc-extractor
--input ${CMAKE_SOURCE_DIR}/benchmarking.cmake
--output ${CMAKE_SOURCE_DIR}/generated-docs/benchmarking.md
cmake-doc-extractor --input ${CMAKE_SOURCE_DIR}/benchmarking.cmake --output
${CMAKE_SOURCE_DIR}/generated-docs/benchmarking.md
DEPENDS ${CMAKE_SOURCE_DIR}/benchmarking.cmake)

add_dependencies(docs extract-api-doc)

0 comments on commit 3326788

Please sign in to comment.