Skip to content

Commit

Permalink
Add docs target only if not a subproject (AcademySoftwareFoundation#223)
Browse files Browse the repository at this point in the history
When Imath is a subproject (as with OpenEXR), the "docs" target can
conflict with the parent project's "docs" target. And the Imath docs
shouldn't be built by the parent project, anyway.

Signed-off-by: Cary Phillips <cary@ilm.com>
  • Loading branch information
cary-ilm committed Jan 17, 2022
1 parent 7d6fbc8 commit 8afcd6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ if (PYTHON)
endif()

option(DOCS "Set ON to build html documentation")
if (DOCS)
if (DOCS AND NOT IMATH_IS_SUBPROJECT)
option(INSTALL_DOCS "Set ON to install html documentation" ON)
add_subdirectory(docs)
endif()
Expand Down

0 comments on commit 8afcd6a

Please sign in to comment.