-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed qgssvnversion.h generation on Linux, Cygwin, cmd.exe and hopefu…
…lly also on Mac git-svn-id: http://svn.osgeo.org/qgis/branches/Release-0_8_0@6673 c8812cc2-4d05-0410-92ff-de0c093fc19c
- Loading branch information
homann
committed
Feb 22, 2007
1 parent
3669b87
commit 54eb1ad
Showing
3 changed files
with
38 additions
and
12 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) |