Skip to content

Commit

Permalink
Get svn revison number for Mac Info.plist from top-level source direc…
Browse files Browse the repository at this point in the history
…tory rather then current source directory.

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8604 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
telwertowski committed Jun 6, 2008
1 parent 0b4876f commit bc0bba9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/mac/Contents/CMakeLists.txt
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion src/mac/Contents/Info.plist.cmake
Expand Up @@ -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)
Expand Down

0 comments on commit bc0bba9

Please sign in to comment.