summaryrefslogtreecommitdiffstats
path: root/Source/cmTryRunCommand.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2006-06-14 16:28:32 (GMT)
committerKen Martin <ken.martin@kitware.com>2006-06-14 16:28:32 (GMT)
commit8e9a6becccc739e8135d5a3b303e8bf125fe3015 (patch)
tree4d7cbd51dd9ce0b7ecb79bcde0b4439c912383e7 /Source/cmTryRunCommand.cxx
parent108839ffda95fc54296d05dec176ff3a6ed6f02c (diff)
downloadCMake-8e9a6becccc739e8135d5a3b303e8bf125fe3015.zip
CMake-8e9a6becccc739e8135d5a3b303e8bf125fe3015.tar.gz
CMake-8e9a6becccc739e8135d5a3b303e8bf125fe3015.tar.bz2
ENH: centralized locaiton of CMakeFiles setting
Diffstat (limited to 'Source/cmTryRunCommand.cxx')
-rw-r--r--Source/cmTryRunCommand.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmTryRunCommand.cxx b/Source/cmTryRunCommand.cxx
index ba7b481..f8f2e86 100644
--- a/Source/cmTryRunCommand.cxx
+++ b/Source/cmTryRunCommand.cxx
@@ -68,7 +68,9 @@ bool cmTryRunCommand::InitialPass(std::vector<std::string> const& argv)
tryCompile, false);
// now try running the command if it compiled
- std::string binaryDirectory = argv[2] + "/CMakeFiles/CMakeTmp";
+ std::string binaryDirectory = argv[2];
+ binaryDirectory += cmake::GetCMakeFilesDirectory();
+ binaryDirectory += "/CMakeTmp";
if (!res)
{
int retVal = -1;