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:
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…
Reference in New Issue