瀏覽代碼

STYLE: copy the executables from TRY_RUN() to
${CMAKE_BINARY_DIR}/CMakeFiles/ instead to ${CMAKE_BINARY_DIR}

Alex

Alexander Neundorf 18 年之前
父節點
當前提交
ed6d98c37c
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Source/cmTryRunCommand.cxx

+ 1 - 0
Source/cmTryRunCommand.cxx

@@ -227,6 +227,7 @@ void cmTryRunCommand::DoNotRunExecutable(const std::string& runArgs,
   // removed at the end of TRY_RUN and the user can run it manually
   // on the target platform.
   std::string copyDest =  this->Makefile->GetHomeOutputDirectory();
+  copyDest += cmake::GetCMakeFilesDirectory();
   copyDest += "/";
   copyDest += cmSystemTools::GetFilenameWithoutExtension(
                                                      this->OutputFile.c_str());