Make documentation installation optional (#333)

This commit is contained in:
Victor Zverovich 2016-05-24 07:03:08 -07:00
parent 7bb1b50835
commit dc1e36fa0e

View File

@ -7,4 +7,5 @@ endif ()
add_custom_target(doc
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/build.py ${FMT_VERSION})
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/ DESTINATION share/doc/fmt)
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/
DESTINATION share/doc/fmt OPTIONAL)