2015-03-05 01:53:22 +03:00
|
|
|
/*============================================================================
|
|
|
|
CMake - Cross Platform Makefile Generator
|
|
|
|
Copyright 2012 Stephen Kelly <steveire@gmail.com>
|
|
|
|
|
|
|
|
Distributed under the OSI-approved BSD License (the "License");
|
|
|
|
see accompanying file Copyright.txt for details.
|
|
|
|
|
|
|
|
This software is distributed WITHOUT ANY WARRANTY; without even the
|
|
|
|
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
See the License for more information.
|
|
|
|
============================================================================*/
|
|
|
|
|
|
|
|
#include "cmGeneratorExpressionContext.h"
|
2015-09-16 05:38:52 +03:00
|
|
|
#include "cmGeneratorTarget.h"
|
2015-03-05 01:53:22 +03:00
|
|
|
|
2015-02-22 23:41:06 +03:00
|
|
|
cmGeneratorExpressionContext::cmGeneratorExpressionContext(
|
2015-07-25 17:56:52 +03:00
|
|
|
cmLocalGenerator* lg, std::string const& config,
|
2015-09-16 05:38:52 +03:00
|
|
|
bool quiet, cmGeneratorTarget const* headTarget,
|
|
|
|
const cmGeneratorTarget* currentTarget,
|
2015-02-22 23:41:06 +03:00
|
|
|
bool evaluateForBuildsystem,
|
|
|
|
cmListFileBacktrace const& backtrace,
|
|
|
|
std::string const& language)
|
|
|
|
: Backtrace(backtrace),
|
2015-07-25 17:56:52 +03:00
|
|
|
LG(lg),
|
2015-02-22 23:41:06 +03:00
|
|
|
Config(config),
|
|
|
|
Language(language),
|
2015-09-16 05:38:52 +03:00
|
|
|
HeadTarget(headTarget ? headTarget->Target : 0),
|
|
|
|
CurrentTarget(currentTarget ? currentTarget->Target : 0),
|
2015-02-22 23:41:06 +03:00
|
|
|
Quiet(quiet),
|
|
|
|
HadError(false),
|
|
|
|
HadContextSensitiveCondition(false),
|
|
|
|
HadHeadSensitiveCondition(false),
|
|
|
|
EvaluateForBuildsystem(evaluateForBuildsystem)
|
2015-03-05 01:53:22 +03:00
|
|
|
{
|
|
|
|
}
|