From 72237e3e344270d1bec8751e9799bf5ba553a244 Mon Sep 17 00:00:00 2001
From: Florent Pruvost <florent.pruvost@inria.fr>
Date: Wed, 30 Aug 2017 16:02:20 +0200
Subject: [PATCH] add dependency to chameleon lib for the doc because all the
 compute sources are required

---
 doc/doxygen/CMakeLists.txt | 1 +
 doc/orgmode/CMakeLists.txt | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/doc/doxygen/CMakeLists.txt b/doc/doxygen/CMakeLists.txt
index 14034acf6..ec81c77bf 100644
--- a/doc/doxygen/CMakeLists.txt
+++ b/doc/doxygen/CMakeLists.txt
@@ -77,6 +77,7 @@ if(DOXYGEN_EXECUTABLE)
     add_custom_target(doxygen-out ALL
                       DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/out-dev
                               #${CMAKE_CURRENT_BINARY_DIR}/out-usr
+                              chameleon
                               )
 
     # Installation for html version
diff --git a/doc/orgmode/CMakeLists.txt b/doc/orgmode/CMakeLists.txt
index d189a3a49..bdcd7910e 100644
--- a/doc/orgmode/CMakeLists.txt
+++ b/doc/orgmode/CMakeLists.txt
@@ -83,8 +83,8 @@ if(EMACS_COMPILER)
                        DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/users_guide.org
                                ${CMAKE_CURRENT_BINARY_DIR}/version.org
                       )
-    add_custom_target(doc-html-users_guide ALL DEPENDS users_guide.html)
-    add_custom_target(doc-pdf-users_guide ALL DEPENDS users_guide.pdf)
+    add_custom_target(doc-html-users_guide ALL DEPENDS users_guide.html chameleon)
+    add_custom_target(doc-pdf-users_guide ALL DEPENDS users_guide.pdf chameleon)
 
     # Installation
     # ------------
-- 
GitLab