mirror of
https://github.com/glest/glest-source.git
synced 2025-02-23 11:15:02 +01:00
- turn off svn rev tag if svn not found
This commit is contained in:
parent
4c7d09d37b
commit
5f2d98533e
@ -78,6 +78,8 @@ IF(CMAKE_COMPILER_IS_GNUCXX OR MINGW)
|
||||
SET(CMAKE_CXX_FLAGS_MINSIZEREL "-O3 ${CMAKE_CXX_FLAGS_MINSIZEREL} -O3 ")
|
||||
SET(CMAKE_EXE_LINKER_FLAGS_MINSIZEREL "${CMAKE_EXE_LINKER_FLAGS_MINSIZEREL} -s") ## Strip binary
|
||||
|
||||
SET(HAS_SVN "FALSE")
|
||||
|
||||
OPTION(WANT_SVN_STAMP "use svn stamp" ON)
|
||||
IF(WANT_SVN_STAMP)
|
||||
# The stuff below gets SVN Global Revision # but ONLY when calling cmake!
|
||||
@ -95,7 +97,7 @@ IF(CMAKE_COMPILER_IS_GNUCXX OR MINGW)
|
||||
|
||||
SET(SVN_VERSION_CMD "-DSVNVERSION='\\\"${MG_WC_REVISION}\\\"'")
|
||||
|
||||
IF(UNIX AND NOT APPLE AND WANT_SVN_STAMP)
|
||||
IF(UNIX AND NOT APPLE AND ${HAS_SVN} STREQUAL "TRUE")
|
||||
# We do some funky character escaping to get the right stuff written out to
|
||||
# the final Makefile so we get the SVN Global Revsion #
|
||||
SET(SVN_VERSION_CMD "-DSVNVERSION='\\\"`svnversion -n ${PROJECT_SOURCE_DIR}`\\\"'")
|
||||
|
Loading…
x
Reference in New Issue
Block a user