Read version from CMakeLists.txt instead of using configure for compatibility with ReadTheDocs.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user