Have cmake take the version from the version file

This commit is contained in:
Isaac Connor 2016-06-03 09:51:50 -04:00
parent 2385575c56
commit 4045211b36
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@
#
cmake_minimum_required (VERSION 2.6)
project (zoneminder)
set(zoneminder_VERSION "1.30.0")
file (STRINGS "version" zoneminder_VERSION)
# make API version a minor of ZM version
set(zoneminder_API_VERSION "${zoneminder_VERSION}.1")