Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Added generation of gqssvnversion.h
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6711 c8812cc2-4d05-0410-92ff-de0c093fc19c
- Loading branch information
homann
committed
Feb 26, 2007
1 parent
9b9a136
commit 9bf9976
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) |