summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2008-03-20 15:44:25 (GMT)
committerDavid Cole <david.cole@kitware.com>2008-03-20 15:44:25 (GMT)
commit9453489919b461013b405f601795bd446298061e (patch)
tree28c511339a11450b45c0467a327156fc540a6916
parent66a8c5763b3b4c6d0be9a5ef030240edfc2486dc (diff)
downloadCMake-9453489919b461013b405f601795bd446298061e.zip
CMake-9453489919b461013b405f601795bd446298061e.tar.gz
CMake-9453489919b461013b405f601795bd446298061e.tar.bz2
BUG: Remove reference to PROJECT_SOURCE_DIR so that the Subversion_WC_INFO macro may be called from a ctest or cmake script.
-rw-r--r--Modules/FindSubversion.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindSubversion.cmake b/Modules/FindSubversion.cmake
index a4c4692..32c66d3 100644
--- a/Modules/FindSubversion.cmake
+++ b/Modules/FindSubversion.cmake
@@ -67,7 +67,7 @@ IF(Subversion_SVN_EXECUTABLE)
MACRO(Subversion_WC_INFO dir prefix)
EXECUTE_PROCESS(COMMAND ${Subversion_SVN_EXECUTABLE} --version
- WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
+ WORKING_DIRECTORY ${dir}
OUTPUT_VARIABLE Subversion_VERSION_SVN
OUTPUT_STRIP_TRAILING_WHITESPACE)