From db4433f116abb39f0452ac1af077dba5d3a57090 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Fri, 17 Feb 2017 10:28:53 +0100 Subject: [PATCH] CMake: set policy CMP0045 --- cmake/modules/UseDoxygen.cmake | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmake/modules/UseDoxygen.cmake b/cmake/modules/UseDoxygen.cmake index b5c7de1..5558416 100644 --- a/cmake/modules/UseDoxygen.cmake +++ b/cmake/modules/UseDoxygen.cmake @@ -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()