Skip to content
Permalink
Browse files

Get svn revison number for Mac Info.plist from top-level source direc…

…tory rather then current source directory.

git-svn-id: http://svn.osgeo.org/qgis/trunk@8604 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
telwertowski
telwertowski committed Jun 6, 2008
1 parent bccd5a3 commit f7c9201c38528e80aee14e24fd0c4e30be06b698
Showing with 2 additions and 1 deletion.
  1. +1 −0 src/mac/Contents/CMakeLists.txt
  2. +1 −1 src/mac/Contents/Info.plist.cmake
@@ -6,6 +6,7 @@ ADD_CUSTOM_TARGET(Info.plist ALL
DEPENDS ${SVN_MARKER}
COMMAND ${CMAKE_COMMAND}
-D CURRENT_SOURCE_DIR=${CMAKE_CURRENT_SOURCE_DIR}
-D SOURCE_DIR=${CMAKE_SOURCE_DIR}
-D VERSION=${COMPLETE_VERSION}-${RELEASE_NAME}
-P ${CMAKE_CURRENT_SOURCE_DIR}/Info.plist.cmake)

@@ -5,7 +5,7 @@ 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)
EXEC_PROGRAM (${SVNVERSION} ARGS ${SOURCE_DIR} OUTPUT_VARIABLE REVISION)
ELSE (SVNVERSION)
SET (REVISION unknown)
ENDIF (SVNVERSION)

0 comments on commit f7c9201

Please sign in to comment.
You can’t perform that action at this time.