Skip to content

Commit f800038

Browse files
authored
Add docs target only if not a subproject (#223)
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 <[email protected]>
1 parent ff2f742 commit f800038

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ if (PYTHON)
7474
endif()
7575

7676
option(DOCS "Set ON to build html documentation")
77-
if (DOCS)
77+
if (DOCS AND NOT IMATH_IS_SUBPROJECT)
7878
option(INSTALL_DOCS "Set ON to install html documentation" ON)
7979
add_subdirectory(docs)
8080
endif()

0 commit comments

Comments
 (0)