Merge release-5-0 into master
[alexxy/gromacs.git] / docs / CMakeLists.txt
index dd043ecd785c98214d2197e46302558158796664..6947156d36a78ac82e5d0f745bbea659dda48a22 100644 (file)
@@ -207,27 +207,27 @@ if(HTML_BUILD_IS_POSSIBLE)
         set(DOWNLOAD_SECTION
 "# Downloads
 
-*   Source code - [gromacs-${PROJECT_VERSION}.tar.gz](gromacs-${PROJECT_VERSION}.tar.gz)  
+*   Source code - [gromacs-${GMX_VERSION_STRING}.tar.gz](gromacs-${GMX_VERSION_STRING}.tar.gz)  
     (md5sum ${SOURCE_MD5SUM})  
     Other source code versions may be found at <ftp://ftp.gromacs.org/pub/gromacs/>
 
-*   Regression tests - [regressiontests-${PROJECT_VERSION}.tar.gz](regressiontests-${PROJECT_VERSION}.tar.gz)  
+*   Regression tests - [regressiontests-${GMX_VERSION_STRING}.tar.gz](regressiontests-${GMX_VERSION_STRING}.tar.gz)  
     (md5sum ${REGRESSIONTESTS_MD5SUM})
 ")
 
         # Copy the source tarball to the webpage output
         add_custom_command(
-            OUTPUT ${HTML_OUTPUT_DIR}/gromacs-${PROJECT_VERSION}.tar.gz
+            OUTPUT ${HTML_OUTPUT_DIR}/gromacs-${GMX_VERSION_STRING}.tar.gz
             COMMAND ${CMAKE_COMMAND}
-               -E copy ${SOURCE_TARBALL} ${HTML_OUTPUT_DIR}/gromacs-${PROJECT_VERSION}.tar.gz
+               -E copy ${SOURCE_TARBALL} ${HTML_OUTPUT_DIR}/gromacs-${GMX_VERSION_STRING}.tar.gz
             VERBATIM
             )
 
         # Copy the regressiontests tarball to the webpage output
         add_custom_command(
-            OUTPUT ${HTML_OUTPUT_DIR}/regressiontests-${PROJECT_VERSION}.tar.gz
+            OUTPUT ${HTML_OUTPUT_DIR}/regressiontests-${GMX_VERSION_STRING}.tar.gz
             COMMAND ${CMAKE_COMMAND}
-               -E copy ${REGRESSIONTESTS_TARBALL} ${HTML_OUTPUT_DIR}/regressiontests-${PROJECT_VERSION}.tar.gz
+               -E copy ${REGRESSIONTESTS_TARBALL} ${HTML_OUTPUT_DIR}/regressiontests-${GMX_VERSION_STRING}.tar.gz
             VERBATIM
             )
     else()
@@ -246,11 +246,11 @@ if(HTML_BUILD_IS_POSSIBLE)
     # Make the PDF reference guide
     # TODO Try to make the PDF arrive directly in ${HTML_OUTPUT_DIR}
     add_custom_command(
-        OUTPUT ${HTML_OUTPUT_DIR}/manual-${PROJECT_VERSION}.pdf
+        OUTPUT ${HTML_OUTPUT_DIR}/manual-${GMX_VERSION_STRING}.pdf
         COMMAND ${CMAKE_COMMAND}
-            -E remove -f ${HTML_OUTPUT_DIR}/manual-${PROJECT_VERSION}.pdf
+            -E remove -f ${HTML_OUTPUT_DIR}/manual-${GMX_VERSION_STRING}.pdf
         COMMAND ${CMAKE_COMMAND}
-            -E copy ${CMAKE_CURRENT_BINARY_DIR}/manual/gromacs.pdf ${HTML_OUTPUT_DIR}/manual-${PROJECT_VERSION}.pdf
+            -E copy ${CMAKE_CURRENT_BINARY_DIR}/manual/gromacs.pdf ${HTML_OUTPUT_DIR}/manual-${GMX_VERSION_STRING}.pdf
         # UseLATEX.cmake makes a target called pdf, not ${CMAKE_CURRENT_BINARY_DIR}/manual/gromacs.pdf
         DEPENDS pdf
         VERBATIM
@@ -283,8 +283,8 @@ if(HTML_BUILD_IS_POSSIBLE)
     # tarball
     if(BUILD_DOWNLOAD_SECTION)
         list(APPEND extra_webpage_dependencies
-            ${HTML_OUTPUT_DIR}/gromacs-${PROJECT_VERSION}.tar.gz
-            ${HTML_OUTPUT_DIR}/regressiontests-${PROJECT_VERSION}.tar.gz
+            ${HTML_OUTPUT_DIR}/gromacs-${GMX_VERSION_STRING}.tar.gz
+            ${HTML_OUTPUT_DIR}/regressiontests-${GMX_VERSION_STRING}.tar.gz
             )
     endif()
 
@@ -297,7 +297,7 @@ if(HTML_BUILD_IS_POSSIBLE)
            ${HTML_OUTPUT_DIR}/index.html
            install-guide
            user-guide
-           ${HTML_OUTPUT_DIR}/manual-${PROJECT_VERSION}.pdf
+           ${HTML_OUTPUT_DIR}/manual-${GMX_VERSION_STRING}.pdf
            ${extra_webpage_dependencies}
         VERBATIM
         )