CMake: set policy CMP0045

This commit is contained in:
Philippe Teuwen 2017-02-17 10:28:53 +01:00
parent 7e3a7a6d05
commit db4433f116

View file

@ -91,8 +91,7 @@ if(DOXYGEN_FOUND AND DOXYFILE_IN)
configure_file(${DOXYFILE_IN} Doxyfile ESCAPE_QUOTES IMMEDIATE @ONLY)
get_target_property(DOC_TARGET doc TYPE)
if(NOT DOC_TARGET)
if(NOT TARGET doc)
add_custom_target(doc)
endif()