Skip to content

Commit

Permalink
Make documentation installation conditional so that it will skip
Browse files Browse the repository at this point in the history
if documentation were not generated
  • Loading branch information
nyue committed Nov 3, 2016
1 parent 586d9f4 commit 31107bc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion openvdb/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,9 @@ ADD_CUSTOM_TARGET ( doc
COMMENT "Generating API documentation with Doxygen" VERBATIM
)

INSTALL ( DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/doc/html/ DESTINATION doc)
IF ( EXISTS ${CMAKE_CURRENT_BINARY_DIR}/doc/html )
INSTALL ( DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/doc/html/ DESTINATION doc)
ENDIF ()

# Installation
IF ( NOT WIN32 )
Expand Down

0 comments on commit 31107bc

Please sign in to comment.