diff options
Diffstat (limited to 'Source/cmTryCompileCommand.cxx')
-rw-r--r-- | Source/cmTryCompileCommand.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmTryCompileCommand.cxx b/Source/cmTryCompileCommand.cxx index a3a66cd..cece5a7 100644 --- a/Source/cmTryCompileCommand.cxx +++ b/Source/cmTryCompileCommand.cxx @@ -173,6 +173,12 @@ int cmTryCompileCommand::CoreTryCompileCode( fclose(fout); projectName = "CMAKE_TRY_COMPILE"; targetName = "cmTryCompileExec"; + // if the source is not in CMakeTmp + if(source.find(argv[1] + "/CMakeTmp") == source.npos) + { + mf->AddCMakeDependFile(source.c_str()); + } + } // else the srcdir bindir project target signature else |