Skip to content

Commit

Permalink
Fixed error on target_property of non existing target
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlandry93 authored and simonlynen committed Jul 1, 2017
1 parent d3ae34e commit ddfabdf
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions UseDoxygen.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,9 @@ if(DOXYGEN_FOUND AND DOXYFILE_IN_FOUND)

configure_file(${DOXYFILE_IN} Doxyfile IMMEDIATE @ONLY)

get_target_property(DOC_TARGET doc TYPE)
if(NOT DOC_TARGET)
add_custom_target(doc)
endif()
if(NOT TARGET doc)
add_custom_target(doc)
endif()

add_dependencies(doc doxygen)
endif()

0 comments on commit ddfabdf

Please sign in to comment.