Skip to content

Commit

Permalink
Check if the target doc exists to add the dependency
Browse files Browse the repository at this point in the history
Signed-off-by: ahcorde <[email protected]>
  • Loading branch information
ahcorde committed Aug 14, 2020
1 parent e9d14c3 commit d8d1d76
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -121,5 +121,8 @@ ign_create_docs(
"${IGNITION-MATH_DOXYGEN_TAGFILE} = ${IGNITION-MATH_API_URL}"
)

# wait to build the doc to the autogenerated code
add_dependencies(doc ignition-msgs6)
# Wait to build the doc for the autogenerated code
# The TARGET will exist if doxygen is installed
if(TARGET doc)
add_dependencies(doc ignition-msgs${PROJECT_VERSION_MAJOR})
endif()

0 comments on commit d8d1d76

Please sign in to comment.