diff --git a/CMakeLists.txt b/CMakeLists.txt index 154bbf63..16891a44 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,7 @@ cmake_minimum_required(VERSION 3.23.1) +set(MATX_VERSION 0.7.0) + # Used for config file generation if(NOT DEFINED PROJECT_NAME) set(NOT_SUBPROJECT ON) @@ -30,7 +32,7 @@ set(cutensornet_DIR "" CACHE PATH "Directory where cuTensorNet is installed.") set(CMAKE_EXPORT_COMPILE_COMMANDS ON) if (MATX_BUILD_DOCS) - project(MATX_DOCS) + project(MATX_DOCS VERSION ${MATX_VERSION}) add_subdirectory(docs_input) endif() @@ -55,7 +57,7 @@ endif() project(MATX LANGUAGES CUDA CXX DESCRIPTION "A modern and efficient header-only C++ library for numerical computing on GPU" - VERSION 0.7.0 + VERSION ${MATX_VERSION} HOMEPAGE_URL "https://github.com/NVIDIA/MatX") if (NOT CMAKE_CUDA_ARCHITECTURES) diff --git a/README.md b/README.md index e8f6f65e..dc6f87de 100644 --- a/README.md +++ b/README.md @@ -97,9 +97,6 @@ cmake -DMATX_BUILD_TESTS=ON .. make -j ``` -Note that if documentation is selected all other build options are off. This eases the dependencies needed to build documentation -so large libraries such as CUDA don't need to be installed. - ### Integrating MatX With Your Own Projects MatX uses CMake as a first-class build generator, and therefore provides the proper config files to include into your own project. There are typically two ways to do this: diff --git a/docs_input/conf.py.in b/docs_input/conf.py.in index fb9fcf3a..b44efa27 100644 --- a/docs_input/conf.py.in +++ b/docs_input/conf.py.in @@ -25,9 +25,9 @@ copyright = '2021-2024, Nvidia' author = 'Nvidia' # The short X.Y version -version = '0.7' +version = '@PROJECT_VERSION_MAJOR@.@PROJECT_VERSION_MINOR@' # The full version, including alpha/beta/rc tags -release = '0.7' +release = '@PROJECT_VERSION@' # -- General configuration ---------------------------------------------------