From 093b93a3c51a74d6b8046d681fabc00af90f9d13 Mon Sep 17 00:00:00 2001 From: Matteo Cypriani Date: Fri, 25 Jul 2014 15:17:46 -0400 Subject: [PATCH] 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". --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a26b240..00a7a4f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()