Skip to content

Commit

Permalink
Merge pull request #200 from maddinat0r/master
Browse files Browse the repository at this point in the history
add CMake option to toggle doxygen documentation
  • Loading branch information
vitaut committed Aug 31, 2015
2 parents 5bcd5ac + 06c1859 commit 6de8f4a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ endif ()
option(FMT_PEDANTIC "Enable extra warnings and expensive tests." OFF)
option(FMT_INSTALL "Generate install target." ON)
option(FMT_TESTS "Generate tests." ON)
option(FMT_DOCS "Generate doxygen documentation." ON)

project(FORMAT)

Expand Down Expand Up @@ -114,7 +115,9 @@ endif ()
set_target_properties(cppformat
PROPERTIES COMPILE_FLAGS "${FMT_EXTRA_COMPILE_FLAGS}")

add_subdirectory(doc)
if (FMT_DOCS)
add_subdirectory(doc)
endif ()

if (FMT_TESTS)
enable_testing()
Expand Down

0 comments on commit 6de8f4a

Please sign in to comment.