summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a63def5)
raw | patch | inline | side by side (parent: a63def5)
author | Sam Sortais <sam.sortais@xilinx.com> | |
Thu, 28 Jul 2016 00:53:55 +0000 (17:53 -0700) | ||
committer | Wendy Liang <jliang@xilinx.com> | |
Thu, 28 Jul 2016 03:52:36 +0000 (20:52 -0700) |
Passing -DWITH_DOC=off to cmake will skip documentation
Signed-off-by: Sam Sortais <sam.sortais@xilinx.com>
Signed-off-by: Sam Sortais <sam.sortais@xilinx.com>
CMakeLists.txt | patch | blob | history | |
cmake/options.cmake | patch | blob | history |
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 18e6641c9cadb8c1a87ba9100bce68510172f4f3..8cc1a3c07a3e28875ddd6d60d01fa1f1048df3bb 100644 (file)
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
if (WITH_TESTS)
add_subdirectory (test)
endif (WITH_TESTS)
-add_subdirectory (doc)
+
+if (WITH_DOC)
+ add_subdirectory (doc)
+endif (WITH_DOC)
# vim: expandtab:ts=2:sw=2:smartindent
diff --git a/cmake/options.cmake b/cmake/options.cmake
index 3eabbac1f7c985c182d224f5be91b4d255891aa5..a7e37a62d440f68fe29c87a7de105f0a750ecafd 100644 (file)
--- a/cmake/options.cmake
+++ b/cmake/options.cmake
option (WITH_DEFAULT_LOGGER "Build with default logger" ON)
+option (WITH_DOC "Build with documentation" ON)
+
set (PROJECT_EC_FLAGS "-Wall -Werror -Wextra" CACHE STRING "")
# vim: expandtab:ts=2:sw=2:smartindent