diff --git a/CMakeLists.txt b/CMakeLists.txt index e5aa01e..e419909 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,8 @@ cmake_minimum_required(VERSION 3.21) +file(READ vcpkg.json VCPKG_MANIFEST_STR) +string(JSON VCPKG_PROJ_VERSION GET ${VCPKG_MANIFEST_STR} "version-semver") project(protodoc - VERSION 1.0.0 + VERSION ${VCPKG_PROJ_VERSION} HOMEPAGE_URL "https://github.com/mathisloge/protocol-doc-generation" LANGUAGES CXX ) diff --git a/vcpkg.json b/vcpkg.json index b6a6035..802a33d 100644 --- a/vcpkg.json +++ b/vcpkg.json @@ -1,6 +1,6 @@ { "name": "protodoc", - "version-string": "1.0.0", + "version-semver": "0.9.0", "dependencies": [ "spdlog", "commsdsl",