diff CMakeLists.txt @ 592:c5ee586a0a08

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 02 Oct 2013 17:40:49 +0200
parents a00f626290db
children ee61f769a25d
line wrap: on
line diff
--- a/CMakeLists.txt	Wed Oct 02 17:36:14 2013 +0200
+++ b/CMakeLists.txt	Wed Oct 02 17:40:49 2013 +0200
@@ -366,20 +366,14 @@
     ${CMAKE_CURRENT_BINARY_DIR}/OrthancClient.doxygen
     @ONLY)
 
-  add_custom_target(doc-client
+  add_custom_target(doc
+    ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Orthanc.doxygen
+    COMMAND
     ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/OrthancClient.doxygen
     WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
     COMMENT "Generating client documentation with Doxygen" VERBATIM
     )
 
-  add_custom_target(doc-internal
-    ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Orthanc.doxygen
-    WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
-    COMMENT "Generating internal documentation with Doxygen" VERBATIM
-    )
-
-  add_custom_target(doc DEPENDS doc-client doc-internal)
-
 else()
   message("Doxygen not found. The documentation will not be built.")
 endif()