mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-19 20:18:49 +00:00
Merge pull request #200 from maddinat0r/master
add CMake option to toggle doxygen documentation
This commit is contained in:
commit
6de8f4a416
@ -13,6 +13,7 @@ endif ()
|
|||||||
option(FMT_PEDANTIC "Enable extra warnings and expensive tests." OFF)
|
option(FMT_PEDANTIC "Enable extra warnings and expensive tests." OFF)
|
||||||
option(FMT_INSTALL "Generate install target." ON)
|
option(FMT_INSTALL "Generate install target." ON)
|
||||||
option(FMT_TESTS "Generate tests." ON)
|
option(FMT_TESTS "Generate tests." ON)
|
||||||
|
option(FMT_DOCS "Generate doxygen documentation." ON)
|
||||||
|
|
||||||
project(FORMAT)
|
project(FORMAT)
|
||||||
|
|
||||||
@ -114,7 +115,9 @@ endif ()
|
|||||||
set_target_properties(cppformat
|
set_target_properties(cppformat
|
||||||
PROPERTIES COMPILE_FLAGS "${FMT_EXTRA_COMPILE_FLAGS}")
|
PROPERTIES COMPILE_FLAGS "${FMT_EXTRA_COMPILE_FLAGS}")
|
||||||
|
|
||||||
add_subdirectory(doc)
|
if (FMT_DOCS)
|
||||||
|
add_subdirectory(doc)
|
||||||
|
endif ()
|
||||||
|
|
||||||
if (FMT_TESTS)
|
if (FMT_TESTS)
|
||||||
enable_testing()
|
enable_testing()
|
||||||
|
Loading…
Reference in New Issue
Block a user