Read version from CMakeLists.txt instead of using configure for compatibility with ReadTheDocs.

This commit is contained in:
Victor Zverovich
2014-07-26 21:05:42 -07:00
parent 2a1c0c9969
commit d91a66e1c5
2 changed files with 11 additions and 5 deletions
-4
View File
@@ -151,11 +151,7 @@ if (EXISTS .gitignore)
set(CPACK_PACKAGE_VERSION_MAJOR 0)
set(CPACK_PACKAGE_VERSION_MINOR 10)
set(CPACK_PACKAGE_VERSION_PATCH 0)
set(CPPFORMAT_VERSION
${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH})
set(CPACK_SOURCE_PACKAGE_FILE_NAME cppformat-${CPPFORMAT_VERSION})
set(CPACK_RESOURCE_FILE_README ${FORMAT_SOURCE_DIR}/README.rst)
include(CPack)
endif ()
configure_file(doc/conf.py.in doc/conf.py @ONLY)