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".
master
Matteo Cypriani 10 years ago
parent 209530ad41
commit 093b93a3c5

@ -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()

Loading…
Cancel
Save