CMake: Fix building outside of a working copy when subversion is installed.
git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1054 a31d4220-a93d-0410-bf67-fe4944624d44
This commit is contained in:
parent
cc39456d49
commit
7bf04a5889
|
@ -35,13 +35,15 @@ endif( NOT ENABLE_DEBUGGER AND ENABLE_SDL )
|
||||||
|
|
||||||
# Set the version number with -DVERSION=X.X.X-uber
|
# Set the version number with -DVERSION=X.X.X-uber
|
||||||
IF( NOT VERSION )
|
IF( NOT VERSION )
|
||||||
FIND_PACKAGE(Subversion)
|
SET( VERSION "1.8.0-SVN" )
|
||||||
IF(SUBVERSION_FOUND)
|
|
||||||
Subversion_WC_INFO(${CMAKE_CURRENT_SOURCE_DIR} SVN_INFO)
|
IF(EXISTS "${CMAKE_SOURCE_DIR}/.svn")
|
||||||
SET( VERSION "1.8.0-SVN${SVN_INFO_WC_REVISION}" )
|
FIND_PACKAGE(Subversion)
|
||||||
ELSE(SUBVERSION_FOUND)
|
IF(SUBVERSION_FOUND)
|
||||||
SET( VERSION "1.8.0-SVN" )
|
Subversion_WC_INFO(${CMAKE_SOURCE_DIR} SVN_INFO)
|
||||||
ENDIF(SUBVERSION_FOUND)
|
SET( VERSION "1.8.0-SVN${SVN_INFO_WC_REVISION}" )
|
||||||
|
ENDIF(SUBVERSION_FOUND)
|
||||||
|
ENDIF(EXISTS "${CMAKE_SOURCE_DIR}/.svn")
|
||||||
ENDIF( NOT VERSION )
|
ENDIF( NOT VERSION )
|
||||||
|
|
||||||
# Fill in SDLMAIN_LIBRARY on OS X manually to avoid using SDLMain.m
|
# Fill in SDLMAIN_LIBRARY on OS X manually to avoid using SDLMain.m
|
||||||
|
|
Loading…
Reference in New Issue