diff --git a/doc/orgmode/CMakeLists.txt b/doc/orgmode/CMakeLists.txt
index 124cbe2e20da88677854d44d090dd7c0287e444a..f1752e53215b4f1fc980fd26a8cf3139c2eb5e56 100644
--- a/doc/orgmode/CMakeLists.txt
+++ b/doc/orgmode/CMakeLists.txt
@@ -70,6 +70,7 @@ if(EMACS_COMPILER)
                                org-html-export-to-html
                                --kill
                        DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/users_guide.org
+                               ${CMAKE_CURRENT_BINARY_DIR}/version.org
                       )
     add_custom_command(OUTPUT  users_guide.pdf
                        COMMAND ${EMACS_COMPILER}
@@ -79,6 +80,7 @@ if(EMACS_COMPILER)
                                org-latex-export-to-pdf
                                --kill
                        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)