Index: cmake/modules/GetSVN.cmake
===================================================================
--- cmake/modules/GetSVN.cmake	(revision 199762)
+++ cmake/modules/GetSVN.cmake	(working copy)
@@ -2,21 +2,26 @@
 #
 # Input variables:
 #   FIRST_SOURCE_DIR  - First source directory
-#   FIRST_REPOSITORY  - The macro to define to the first revision number.
+#   FIRST_PREFIX      - Prefix for revision and repository macros for first dir.
 #   SECOND_SOURCE_DIR - Second source directory
-#   SECOND_REPOSITORY - The macro to define to the second revision number.
+#   SECOND_PREFIX     - Prefix for revision and repository macros for second dir.
 #   HEADER_FILE       - The header file to write
 include(FindSubversion)
 if (Subversion_FOUND AND EXISTS "${FIRST_SOURCE_DIR}/.svn")
   # Repository information for the first repository.
   Subversion_WC_INFO(${FIRST_SOURCE_DIR} MY)
-  file(WRITE ${HEADER_FILE}.txt "#define ${FIRST_REPOSITORY} \"${MY_WC_REVISION}\"\n")
+  file(WRITE ${HEADER_FILE}.txt
+    "#define ${FIRST_PREFIX}_REVISION \"${MY_WC_REVISION}\"\n")
+  file(APPEND ${HEADER_FILE}.txt
+    "#define ${FIRST_PREFIX}_REPOSITORY \"${MY_WC_URL}\"\n")
 
   # Repository information for the second repository.
   if (EXISTS "${SECOND_SOURCE_DIR}/.svn")
     Subversion_WC_INFO(${SECOND_SOURCE_DIR} MY)
-    file(APPEND ${HEADER_FILE}.txt 
-      "#define ${SECOND_REPOSITORY} \"${MY_WC_REVISION}\"\n")
+    file(APPEND ${HEADER_FILE}.txt
+      "#define ${SECOND_PREFIX}_REVISION \"${MY_WC_REVISION}\"\n")
+    file(APPEND ${HEADER_FILE}.txt
+      "#define ${SECOND_PREFIX}_REPOSITORY \"${MY_WC_URL}\"\n")
   endif ()
 
   # Copy the file only if it has changed.
