Skip to content

Commit

Permalink
Do not build documentation for subprojects
Browse files Browse the repository at this point in the history
  • Loading branch information
Wentzell committed Jul 26, 2023
1 parent f23ebdf commit fdfe127
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 @@ -145,7 +145,7 @@ if(PythonSupport)
endif()

# Docs
if(Build_Documentation)
if(NOT IS_SUBPROJECT AND Build_Documentation)
add_subdirectory(doc)
endif()

Expand Down

0 comments on commit fdfe127

Please sign in to comment.