Add VERSION to cmake project()
parent
278f37c00f
commit
17c6a562b0
|
@ -1,5 +1,15 @@
|
||||||
cmake_minimum_required(VERSION 2.8)
|
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)
|
add_subdirectory(src)
|
||||||
|
|
Loading…
Reference in New Issue