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.
This commit is contained in:
Karl Goetz 2014-12-07 16:06:13 +11:00
parent 35347ed36b
commit 4919307d8f
1 changed files with 3 additions and 1 deletions

View File

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