tweak to build with kdevelop on osx

This commit is contained in:
Will
2013-12-05 23:48:12 +01:00
parent 46a0dab916
commit 62a1dab85a
2 changed files with 2 additions and 22 deletions

22
.gitignore vendored
View File

@@ -6,30 +6,10 @@
# Vim # Vim
*.un~ *.un~
Session.vim Session.vim
.netrwhist MegaGlest.kdev4
## OSX ## OSX
.DS_Store
.DS_Store?
.AppleDouble
.LSOverride
Icon Icon
# Thumbnails
._*
# Files that might appear on external disk
.Spotlight-V100
.Trashes
# CMake when building e.g. on OSX
/CMakeCache.txt
CMakeFiles/
cmake_install.cmake
CMakeScripts/
Debug/
MegaGlest.build/
/MegaGlest.xcodeproj/
*.plist
*.cmake
## Windows ## Windows
# Windows image file caches # Windows image file caches

View File

@@ -223,7 +223,7 @@ IF(CMAKE_COMPILER_IS_GNUCXX OR MINGW)
ENDIF() ENDIF()
ENDIF() ENDIF()
IF(APPLE) IF(APPLE AND NOT CMAKE_COMPILER_IS_GNUCXX)
SET(GIT_VERSION_CMD "-DGITVERSION='\\\\'${GIT_COMMIT_COUNT}.${GIT_SHA1}\\\\''") SET(GIT_VERSION_CMD "-DGITVERSION='\\\\'${GIT_COMMIT_COUNT}.${GIT_SHA1}\\\\''")
ELSE() ELSE()
SET(GIT_VERSION_CMD "-DGITVERSION='\\\"${GIT_COMMIT_COUNT}.${GIT_SHA1}\\\"'") SET(GIT_VERSION_CMD "-DGITVERSION='\\\"${GIT_COMMIT_COUNT}.${GIT_SHA1}\\\"'")