From 4919307d8ff8bcfe4094a7729edd2bd0ca89c8ec Mon Sep 17 00:00:00 2001 From: Karl Goetz Date: Sun, 7 Dec 2014 16:06:13 +1100 Subject: [PATCH] Reintroduce ELSE clause Had a chat with softcoder who explained what was going on. We should now be almost identical to the original but the compiler specific test has been removed. --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 348ed726..c4f5ca3b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -243,7 +243,9 @@ IF(CMAKE_COMPILER_IS_GNUCXX OR MINGW) ENDIF() IF(APPLE) - SET(GIT_VERSION_CMD "-DGITVERSION='\\\\"${GIT_LIVE_REV_CMD}\\\\"'") + SET(GIT_VERSION_CMD "-DGITVERSION='\\\\'${GIT_LIVE_REV_CMD}\\\\''") + ELSE() + SET(GIT_VERSION_CMD "-DGITVERSION='\\\"${GIT_LIVE_REV_CMD}\\\"'") ENDIF() IF(CMAKE_INSTALL_PREFIX STREQUAL "")