Commit ddda3d9e authored by Dominik Charousset's avatar Dominik Charousset

Exclude manual from default targets

parent e2f07199
...@@ -44,9 +44,10 @@ Usage: $0 [OPTION]... [VAR=VALUE]... ...@@ -44,9 +44,10 @@ Usage: $0 [OPTION]... [VAR=VALUE]...
--warnings-as-errors build with '-Werror' --warnings-as-errors build with '-Werror'
--with-ccache use ccache to improve build performance --with-ccache use ccache to improve build performance
Additional Examples: Optional Targets:
--with-qt-examples include Qt example(s) --with-qt-examples build Qt example(s)
--with-protobuf-examples include Google Protobuf example(s) --with-protobuf-examples build Google Protobuf example(s)
--with-tex-manual build the LaTeX manual
Installation Directories: Installation Directories:
--prefix=PREFIX installation directory [/usr/local] --prefix=PREFIX installation directory [/usr/local]
...@@ -339,6 +340,9 @@ while [ $# -ne 0 ]; do ...@@ -339,6 +340,9 @@ while [ $# -ne 0 ]; do
--with-protobuf-examples) --with-protobuf-examples)
append_cache_entry CAF_BUILD_PROTOBUF_EXAMPLES BOOL yes append_cache_entry CAF_BUILD_PROTOBUF_EXAMPLES BOOL yes
;; ;;
--with-tex-manual)
append_cache_entry CAF_BUILD_TEX_MANUAL BOOL yes
;;
--no-curl-examples) --no-curl-examples)
append_cache_entry CAF_NO_CURL_EXAMPLES BOOL yes append_cache_entry CAF_NO_CURL_EXAMPLES BOOL yes
;; ;;
......
...@@ -94,11 +94,8 @@ endmacro() ...@@ -94,11 +94,8 @@ endmacro()
# -- LaTeX setup --------------------------------------------------------------- # -- LaTeX setup ---------------------------------------------------------------
find_package(LATEX QUIET) if (CAF_BUILD_TEX_MANUAL)
find_package(LATEX)
if(NOT LATEX_FOUND)
message(STATUS "LaTeX not found, skip building manual.")
else()
message(STATUS "Add optional target: manual.") message(STATUS "Add optional target: manual.")
include("cmake/UseLATEX.cmake") include("cmake/UseLATEX.cmake")
# enable synctex for convenient editing # enable synctex for convenient editing
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment