Skip to content

Commit

Permalink
Make docs install optional in CMake
Browse files Browse the repository at this point in the history
Signed-off-by: Harry Mallon <hjmallon@gmail.com>
  • Loading branch information
hjmallon authored and cary-ilm committed Jan 16, 2020
1 parent afa84f8 commit 7bd899a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions OpenEXR/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ include(config/LibraryDefine.cmake)

add_subdirectory( IlmImf )
add_subdirectory( IlmImfUtil )
add_subdirectory( IlmImfExamples )

option(INSTALL_OPENEXR_EXAMPLES "Install OpenEXR examples" ON)
if(INSTALL_OPENEXR_EXAMPLES)
add_subdirectory( IlmImfExamples )
endif()

##########################
# Tests
Expand Down Expand Up @@ -78,4 +82,7 @@ if(OPENEXR_BUILD_UTILS)
add_subdirectory( exrmultipart )
endif()

add_subdirectory(doc)
option(INSTALL_OPENEXR_DOCS "Install OpenEXR documentation" ON)
if(INSTALL_OPENEXR_DOCS)
add_subdirectory(doc)
endif()

0 comments on commit 7bd899a

Please sign in to comment.