-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: http://svn.osgeo.org/qgis/trunk@6711 c8812cc2-4d05-0410-92ff-de0c093fc19c
- Loading branch information
homann
committed
Feb 26, 2007
1 parent
6316212
commit 1d9581a
Showing
3 changed files
with
36 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#define QGSSVNVERSION "@MYVERSION@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Magnus Homann svn hack | ||
# Required? | ||
SET(CMAKE_BACKWARDS_COMPATIBILITY "2.4") | ||
|
||
# See if we have svn installed | ||
FIND_PROGRAM(SVNVERSION svnversion) | ||
|
||
# Read the version if installed, else set to "unknown" | ||
IF (SVNVERSION) | ||
EXEC_PROGRAM(${SVNVERSION} ARGS @CMAKE_CURRENT_SOURCE_DIR@ OUTPUT_VARIABLE MYVERSION) | ||
ELSE (SVNVERSION) | ||
SET(MYVERSION unknown) | ||
ENDIF (SVNVERSION) | ||
|
||
# Configure the qgssvnversion.h | ||
CONFIGURE_FILE(@CMAKE_CURRENT_SOURCE_DIR@/qgssvnversion.h.in_cmake | ||
@CMAKE_CURRENT_BINARY_DIR@/qgssvnversion.h) |