summaryrefslogtreecommitdiffstats
path: root/Source/cmTryCompileCommand.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmTryCompileCommand.cxx')
-rw-r--r--Source/cmTryCompileCommand.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmTryCompileCommand.cxx b/Source/cmTryCompileCommand.cxx
index 3991f21..7d0014c 100644
--- a/Source/cmTryCompileCommand.cxx
+++ b/Source/cmTryCompileCommand.cxx
@@ -110,7 +110,7 @@ int cmTryCompileCommand::CoreTryCompileCode(
// signature
if (srcFileSignature)
{
- tmpString = argv[1] + "/CMakeTmp";
+ tmpString = argv[1] + "/CMakeFiles/CMakeTmp";
binaryDirectory = tmpString.c_str();
}
// make sure the binary directory exists
@@ -201,7 +201,7 @@ int cmTryCompileCommand::CoreTryCompileCode(
projectName = "CMAKE_TRY_COMPILE";
targetName = "cmTryCompileExec";
// if the source is not in CMakeTmp
- if(source.find(argv[1] + "/CMakeTmp") == source.npos)
+ if(source.find(argv[1] + "/CMakeFiles/CMakeTmp") == source.npos)
{
mf->AddCMakeDependFile(source.c_str());
}