Add VERSION to cmake project()

pull/5/head
Alexey Shabalin 2021-03-19 17:41:24 +03:00
parent 278f37c00f
commit 17c6a562b0
1 changed files with 11 additions and 1 deletions

View File

@ -1,5 +1,15 @@
cmake_minimum_required(VERSION 2.8)
project(vitastor)
set(MAJOR_VERSION "0")
set(MINOR_VERSION "5")
set(PATCH_VERSION "10")
set(VERSION_STRING "${MAJOR_VERSION}.${MINOR_VERSION}.${PATCH_VERSION}")
if (CMAKE_VERSION VERSION_LESS 3.0)
project(vitastor)
else()
cmake_policy(SET CMP0048 NEW)
project(vitastor VERSION "${VERSION_STRING}")
endif()
add_subdirectory(src)