From 06c1859420ed44bdfd602a1d3d0f756eedde0c0a Mon Sep 17 00:00:00 2001 From: Alex Martin Date: Sun, 30 Aug 2015 14:23:54 +0200 Subject: [PATCH] add CMake option to toggle doxygen documentation --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c31d1b7f50e6..b8494b92f6ce 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) @@ -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()