mirror of
https://github.com/glest/glest-source.git
synced 2025-02-22 18:54:58 +01:00
Change test for GIT_VERSION_CMD an xcode check
Following the work I did on GH ' Remove special casing on GIT_VERSION_CMD #33 ' I've done more experiements and test rebuilds. I've found that the test should actually be to find out if we are working with Xcode specifically as using the gnu build chain is working correctly with the code in the 'else' clause - the codepath i tested before doing my original changes - but doesn't work using the special 'apple' version. This change should mean both methods of building work correctly.
This commit is contained in:
parent
a63faa70bd
commit
d6f61233ce
@ -242,7 +242,7 @@ IF(CMAKE_COMPILER_IS_GNUCXX OR MINGW)
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
|
||||
IF(APPLE)
|
||||
IF(CMAKE_GENERATOR STREQUAL Xcode)
|
||||
SET(GIT_VERSION_CMD "-DGITVERSION='\\\\'${GIT_LIVE_REV_CMD}\\\\''")
|
||||
ELSE()
|
||||
SET(GIT_VERSION_CMD "-DGITVERSION='\\\"${GIT_LIVE_REV_CMD}\\\"'")
|
||||
|
Loading…
x
Reference in New Issue
Block a user