Use VERSION on the CMake project (#733)

This sets the other variables:

 https://cmake.org/cmake/help/latest/command/project.html
This commit is contained in:
Andy Maloney
2019-09-10 10:50:10 -04:00
committed by Jesse Beder
parent e0e01d53c2
commit 90350662c9

View File

@@ -9,13 +9,7 @@ include(CheckCXXCompilerFlag)
###
### Project settings
###
project(YAML_CPP)
set(YAML_CPP_VERSION_MAJOR "0")
set(YAML_CPP_VERSION_MINOR "6")
set(YAML_CPP_VERSION_PATCH "2")
set(YAML_CPP_VERSION "${YAML_CPP_VERSION_MAJOR}.${YAML_CPP_VERSION_MINOR}.${YAML_CPP_VERSION_PATCH}")
project(YAML_CPP VERSION 0.6.2)
###
### Project options