CMake: make sure OWLPS_VERSION is defined

If not defined in the environment and could not retrieved from Git,
OWLPS_VERSION is defined to "unknown version".
This commit is contained in:
Matteo Cypriani 2014-07-25 15:17:46 -04:00
parent 209530ad41
commit 093b93a3c5
1 changed files with 2 additions and 0 deletions

View File

@ -66,6 +66,8 @@ else()
OUTPUT_STRIP_TRAILING_WHITESPACE)
if (${RET} EQUAL 0)
add_definitions(-DOWLPS_VERSION="${OWLPS_VERSION}")
else()
add_definitions(-DOWLPS_VERSION="unknown version")
endif()
endif()