From 7bd899ac6f90efe5348518389d944856b5a73c7e Mon Sep 17 00:00:00 2001 From: Harry Mallon Date: Wed, 8 Jan 2020 09:46:39 +0000 Subject: [PATCH] Make docs install optional in CMake Signed-off-by: Harry Mallon --- OpenEXR/CMakeLists.txt | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/OpenEXR/CMakeLists.txt b/OpenEXR/CMakeLists.txt index f25a191ed3..390b27f543 100644 --- a/OpenEXR/CMakeLists.txt +++ b/OpenEXR/CMakeLists.txt @@ -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 @@ -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()