-
-
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.
Use cmake script with CONFIGURE_FILE rather than grep/sed to create M…
…ac Info.plist. This circumvents command-line quoting problems when upgrading to CMake 2.6. git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8600 c8812cc2-4d05-0410-92ff-de0c093fc19c
- Loading branch information
telwertowski
committed
Jun 6, 2008
1 parent
366645d
commit 032dbaf
Showing
3 changed files
with
26 additions
and
18 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,15 @@ | ||
SET(CMAKE_BACKWARDS_COMPATIBILITY "2.4") | ||
|
||
# See if we have svn installed | ||
FIND_PROGRAM(SVNVERSION svnversion) | ||
|
||
# Read the revision if installed, else set to "unknown" | ||
IF (SVNVERSION) | ||
EXEC_PROGRAM (${SVNVERSION} ARGS ${CURRENT_SOURCE_DIR} OUTPUT_VARIABLE REVISION) | ||
ELSE (SVNVERSION) | ||
SET (REVISION unknown) | ||
ENDIF (SVNVERSION) | ||
|
||
# Create Info.plist | ||
CONFIGURE_FILE (${CURRENT_SOURCE_DIR}/Info.plist.in | ||
${CMAKE_CURRENT_BINARY_DIR}/Info.plist) |
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