"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Source/cmTryCompileCommand.cxx" between
cmake-3.13.4.tar.gz and cmake-3.14.0-rc1.tar.gz

About: CMake is a cross-platform build system designed to build, test and package software. Release candidate.

cmTryCompileCommand.cxx  (cmake-3.13.4):cmTryCompileCommand.cxx  (cmake-3.14.0-rc1)
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */ file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmTryCompileCommand.h" #include "cmTryCompileCommand.h"
#include "cmMakefile.h" #include "cmMakefile.h"
#include "cmMessageType.h"
#include "cmake.h" #include "cmake.h"
class cmExecutionStatus; class cmExecutionStatus;
// cmTryCompileCommand // cmTryCompileCommand
bool cmTryCompileCommand::InitialPass(std::vector<std::string> const& argv, bool cmTryCompileCommand::InitialPass(std::vector<std::string> const& argv,
cmExecutionStatus&) cmExecutionStatus&)
{ {
if (argv.size() < 3) { if (argv.size() < 3) {
return false; return false;
} }
if (this->Makefile->GetCMakeInstance()->GetWorkingMode() == if (this->Makefile->GetCMakeInstance()->GetWorkingMode() ==
cmake::FIND_PACKAGE_MODE) { cmake::FIND_PACKAGE_MODE) {
this->Makefile->IssueMessage( this->Makefile->IssueMessage(
cmake::FATAL_ERROR, MessageType::FATAL_ERROR,
"The TRY_COMPILE() command is not supported in --find-package mode."); "The TRY_COMPILE() command is not supported in --find-package mode.");
return false; return false;
} }
this->TryCompileCode(argv, false); this->TryCompileCode(argv, false);
// if They specified clean then we clean up what we can // if They specified clean then we clean up what we can
if (this->SrcFileSignature) { if (this->SrcFileSignature) {
if (!this->Makefile->GetCMakeInstance()->GetDebugTryCompile()) { if (!this->Makefile->GetCMakeInstance()->GetDebugTryCompile()) {
this->CleanupFiles(this->BinaryDirectory); this->CleanupFiles(this->BinaryDirectory);
 End of changes. 2 change blocks. 
1 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)