2009-09-28 15:43:28 +00:00
|
|
|
/*============================================================================
|
|
|
|
CMake - Cross Platform Makefile Generator
|
|
|
|
Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
|
2001-04-11 18:59:02 +00:00
|
|
|
|
2009-09-28 15:43:28 +00:00
|
|
|
Distributed under the OSI-approved BSD License (the "License");
|
|
|
|
see accompanying file Copyright.txt for details.
|
2001-04-11 18:59:02 +00:00
|
|
|
|
2009-09-28 15:43:28 +00:00
|
|
|
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.
|
|
|
|
============================================================================*/
|
2001-04-11 18:59:02 +00:00
|
|
|
#ifndef cmTarget_h
|
|
|
|
#define cmTarget_h
|
|
|
|
|
2016-04-29 13:40:20 +00:00
|
|
|
#include "cmStandardIncludes.h"
|
|
|
|
|
2001-04-11 18:59:02 +00:00
|
|
|
#include "cmCustomCommand.h"
|
2013-02-12 09:35:28 +00:00
|
|
|
#include "cmListFileCache.h"
|
2016-04-29 14:53:13 +00:00
|
|
|
#include "cmPolicies.h"
|
|
|
|
#include "cmPropertyMap.h"
|
2005-02-18 21:12:08 +00:00
|
|
|
|
2009-07-06 20:24:32 +00:00
|
|
|
#include <cmsys/auto_ptr.hxx>
|
2014-06-10 17:07:24 +00:00
|
|
|
#if defined(CMAKE_BUILD_WITH_CMAKE)
|
2016-06-22 22:16:15 +00:00
|
|
|
#ifdef CMake_HAVE_CXX_UNORDERED_MAP
|
2016-05-16 14:34:04 +00:00
|
|
|
#include <unordered_map>
|
|
|
|
#else
|
|
|
|
#include <cmsys/hash_map.hxx>
|
|
|
|
#endif
|
2014-06-10 17:07:24 +00:00
|
|
|
#endif
|
2009-07-06 20:24:32 +00:00
|
|
|
|
2006-12-07 14:45:32 +00:00
|
|
|
class cmake;
|
2005-02-18 21:12:08 +00:00
|
|
|
class cmMakefile;
|
2002-09-27 20:24:10 +00:00
|
|
|
class cmSourceFile;
|
2004-09-22 18:42:05 +00:00
|
|
|
class cmGlobalGenerator;
|
2008-03-13 17:48:57 +00:00
|
|
|
class cmListFileBacktrace;
|
2013-01-04 12:31:01 +00:00
|
|
|
class cmTarget;
|
2012-10-10 22:57:11 +00:00
|
|
|
class cmGeneratorTarget;
|
|
|
|
class cmTargetTraceDependencies;
|
2001-04-11 18:59:02 +00:00
|
|
|
|
2008-02-18 21:38:34 +00:00
|
|
|
class cmTargetInternals;
|
|
|
|
class cmTargetInternalPointer
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
cmTargetInternalPointer();
|
|
|
|
cmTargetInternalPointer(cmTargetInternalPointer const& r);
|
|
|
|
~cmTargetInternalPointer();
|
|
|
|
cmTargetInternalPointer& operator=(cmTargetInternalPointer const& r);
|
|
|
|
cmTargetInternals* operator->() const { return this->Pointer; }
|
2009-09-07 14:11:43 +00:00
|
|
|
cmTargetInternals* Get() const { return this->Pointer; }
|
2008-02-18 21:38:34 +00:00
|
|
|
private:
|
|
|
|
cmTargetInternals* Pointer;
|
|
|
|
};
|
|
|
|
|
2001-04-11 18:59:02 +00:00
|
|
|
/** \class cmTarget
|
|
|
|
* \brief Represent a library or executable target loaded from a makefile.
|
|
|
|
*
|
2007-07-02 17:32:41 +00:00
|
|
|
* cmTarget represents a target loaded from
|
2001-04-11 18:59:02 +00:00
|
|
|
* a makefile.
|
|
|
|
*/
|
|
|
|
class cmTarget
|
|
|
|
{
|
|
|
|
public:
|
2006-01-13 23:18:32 +00:00
|
|
|
cmTarget();
|
2016-05-16 14:34:04 +00:00
|
|
|
enum CustomCommandType
|
|
|
|
{
|
|
|
|
PRE_BUILD,
|
|
|
|
PRE_LINK,
|
|
|
|
POST_BUILD
|
|
|
|
};
|
2003-06-03 14:30:23 +00:00
|
|
|
|
2001-04-19 17:28:46 +00:00
|
|
|
/**
|
2001-05-01 20:55:32 +00:00
|
|
|
* Return the type of target.
|
2001-04-19 17:28:46 +00:00
|
|
|
*/
|
2016-05-16 14:34:04 +00:00
|
|
|
cmState::TargetType GetType() const { return this->TargetTypeValue; }
|
2007-07-02 17:32:41 +00:00
|
|
|
|
2002-11-19 23:01:05 +00:00
|
|
|
/**
|
|
|
|
* Set the target type
|
|
|
|
*/
|
2015-10-07 22:21:51 +00:00
|
|
|
void SetType(cmState::TargetType f, const std::string& name);
|
2004-09-22 18:42:05 +00:00
|
|
|
|
2015-10-25 11:22:51 +00:00
|
|
|
void MarkAsImported(bool global = false);
|
2007-07-02 17:32:41 +00:00
|
|
|
|
2004-09-22 18:42:05 +00:00
|
|
|
///! Set/Get the name of the target
|
2016-05-16 14:34:04 +00:00
|
|
|
const std::string& GetName() const { return this->Name; }
|
2002-11-19 23:01:05 +00:00
|
|
|
|
2005-06-22 13:06:46 +00:00
|
|
|
///! Set the cmMakefile that owns this target
|
2016-05-16 14:34:04 +00:00
|
|
|
void SetMakefile(cmMakefile* mf);
|
|
|
|
cmMakefile* GetMakefile() const { return this->Makefile; }
|
2007-07-02 17:32:41 +00:00
|
|
|
|
2016-05-16 14:34:04 +00:00
|
|
|
#define DECLARE_TARGET_POLICY(POLICY) \
|
|
|
|
cmPolicies::PolicyStatus GetPolicyStatus##POLICY() const \
|
|
|
|
{ \
|
|
|
|
return this->PolicyMap.Get(cmPolicies::POLICY); \
|
|
|
|
}
|
2008-07-23 16:59:14 +00:00
|
|
|
|
2013-06-28 09:25:40 +00:00
|
|
|
CM_FOR_EACH_TARGET_POLICY(DECLARE_TARGET_POLICY)
|
2012-11-20 13:53:41 +00:00
|
|
|
|
2013-06-28 09:25:40 +00:00
|
|
|
#undef DECLARE_TARGET_POLICY
|
2013-06-04 14:25:47 +00:00
|
|
|
|
2001-04-19 17:28:46 +00:00
|
|
|
/**
|
|
|
|
* Get the list of the custom commands for this target
|
|
|
|
*/
|
2016-05-16 14:34:04 +00:00
|
|
|
std::vector<cmCustomCommand> const& GetPreBuildCommands() const
|
|
|
|
{
|
|
|
|
return this->PreBuildCommands;
|
|
|
|
}
|
|
|
|
std::vector<cmCustomCommand> const& GetPreLinkCommands() const
|
|
|
|
{
|
|
|
|
return this->PreLinkCommands;
|
|
|
|
}
|
|
|
|
std::vector<cmCustomCommand> const& GetPostBuildCommands() const
|
|
|
|
{
|
|
|
|
return this->PostBuildCommands;
|
|
|
|
}
|
|
|
|
void AddPreBuildCommand(cmCustomCommand const& cmd)
|
|
|
|
{
|
|
|
|
this->PreBuildCommands.push_back(cmd);
|
|
|
|
}
|
|
|
|
void AddPreLinkCommand(cmCustomCommand const& cmd)
|
|
|
|
{
|
|
|
|
this->PreLinkCommands.push_back(cmd);
|
|
|
|
}
|
|
|
|
void AddPostBuildCommand(cmCustomCommand const& cmd)
|
|
|
|
{
|
|
|
|
this->PostBuildCommands.push_back(cmd);
|
|
|
|
}
|
2001-04-19 17:28:46 +00:00
|
|
|
|
2007-06-18 15:59:23 +00:00
|
|
|
/**
|
|
|
|
* Add sources to the target.
|
|
|
|
*/
|
|
|
|
void AddSources(std::vector<std::string> const& srcs);
|
2014-04-08 23:32:14 +00:00
|
|
|
void AddTracedSources(std::vector<std::string> const& srcs);
|
2014-03-17 15:54:11 +00:00
|
|
|
cmSourceFile* AddSourceCMP0049(const std::string& src);
|
2014-02-06 19:05:57 +00:00
|
|
|
cmSourceFile* AddSource(const std::string& src);
|
2007-06-18 15:59:23 +00:00
|
|
|
|
2006-11-29 16:00:17 +00:00
|
|
|
//* how we identify a library, by name and type
|
2015-10-10 11:56:36 +00:00
|
|
|
typedef std::pair<std::string, cmTargetLinkLibraryType> LibraryID;
|
2006-11-29 16:00:17 +00:00
|
|
|
|
2016-05-16 14:34:04 +00:00
|
|
|
typedef std::vector<LibraryID> LinkLibraryVectorType;
|
|
|
|
const LinkLibraryVectorType& GetOriginalLinkLibraries() const
|
|
|
|
{
|
|
|
|
return this->OriginalLinkLibraries;
|
|
|
|
}
|
2007-07-02 17:32:41 +00:00
|
|
|
|
2002-11-19 23:01:05 +00:00
|
|
|
/**
|
|
|
|
* Clear the dependency information recorded for this target, if any.
|
|
|
|
*/
|
2014-02-06 22:31:47 +00:00
|
|
|
void ClearDependencyInformation(cmMakefile& mf, const std::string& target);
|
2002-11-19 23:01:05 +00:00
|
|
|
|
2016-05-16 14:34:04 +00:00
|
|
|
void AddLinkLibrary(cmMakefile& mf, const std::string& target,
|
|
|
|
const std::string& lib, cmTargetLinkLibraryType llt);
|
|
|
|
enum TLLSignature
|
|
|
|
{
|
2013-06-04 14:21:33 +00:00
|
|
|
KeywordTLLSignature,
|
|
|
|
PlainTLLSignature
|
|
|
|
};
|
2015-06-23 18:56:47 +00:00
|
|
|
bool PushTLLCommandTrace(TLLSignature signature,
|
|
|
|
cmListFileContext const& lfc);
|
2016-06-08 20:29:15 +00:00
|
|
|
void GetTllSignatureTraces(std::ostream& s, TLLSignature sig) const;
|
2002-05-03 20:34:05 +00:00
|
|
|
|
2016-05-16 14:34:04 +00:00
|
|
|
void MergeLinkLibraries(cmMakefile& mf, const std::string& selfname,
|
|
|
|
const LinkLibraryVectorType& libs);
|
2002-05-03 20:34:05 +00:00
|
|
|
|
2013-10-29 21:21:20 +00:00
|
|
|
const std::vector<std::string>& GetLinkDirectories() const;
|
2006-01-13 23:18:32 +00:00
|
|
|
|
2014-02-06 22:31:47 +00:00
|
|
|
void AddLinkDirectory(const std::string& d);
|
2001-05-23 15:31:43 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the path where this target should be installed. This is relative to
|
|
|
|
* INSTALL_PREFIX
|
|
|
|
*/
|
2016-05-16 14:34:04 +00:00
|
|
|
std::string GetInstallPath() const { return this->InstallPath; }
|
|
|
|
void SetInstallPath(const char* name) { this->InstallPath = name; }
|
2007-07-02 17:32:41 +00:00
|
|
|
|
2004-01-27 17:37:30 +00:00
|
|
|
/**
|
|
|
|
* Set the path where this target (if it has a runtime part) should be
|
|
|
|
* installed. This is relative to INSTALL_PREFIX
|
|
|
|
*/
|
2016-05-16 14:34:04 +00:00
|
|
|
std::string GetRuntimeInstallPath() const
|
|
|
|
{
|
|
|
|
return this->RuntimeInstallPath;
|
|
|
|
}
|
|
|
|
void SetRuntimeInstallPath(const char* name)
|
|
|
|
{
|
|
|
|
this->RuntimeInstallPath = name;
|
|
|
|
}
|
2006-02-19 22:27:47 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Get/Set whether there is an install rule for this target.
|
|
|
|
*/
|
2013-10-29 21:21:20 +00:00
|
|
|
bool GetHaveInstallRule() const { return this->HaveInstallRule; }
|
2006-03-15 16:02:08 +00:00
|
|
|
void SetHaveInstallRule(bool h) { this->HaveInstallRule = h; }
|
2006-02-19 22:27:47 +00:00
|
|
|
|
2001-06-07 18:52:29 +00:00
|
|
|
/** Add a utility on which this project depends. A utility is an executable
|
|
|
|
* name as would be specified to the ADD_EXECUTABLE or UTILITY_SOURCE
|
2007-07-02 17:32:41 +00:00
|
|
|
* commands. It is not a full path nor does it have an extension.
|
2001-06-07 18:52:29 +00:00
|
|
|
*/
|
2016-06-27 20:44:16 +00:00
|
|
|
void AddUtility(const std::string& u, cmMakefile* makefile = CM_NULLPTR);
|
2001-06-07 18:52:29 +00:00
|
|
|
///! Get the utilities used by this target
|
2016-05-16 14:34:04 +00:00
|
|
|
std::set<std::string> const& GetUtilities() const { return this->Utilities; }
|
2014-02-06 22:31:47 +00:00
|
|
|
cmListFileBacktrace const* GetUtilityBacktrace(const std::string& u) const;
|
2001-06-13 17:49:24 +00:00
|
|
|
|
2002-12-20 22:15:45 +00:00
|
|
|
///! Set/Get a property of this target file
|
2016-05-16 14:34:04 +00:00
|
|
|
void SetProperty(const std::string& prop, const char* value);
|
|
|
|
void AppendProperty(const std::string& prop, const char* value,
|
|
|
|
bool asString = false);
|
|
|
|
const char* GetProperty(const std::string& prop) const;
|
|
|
|
const char* GetProperty(const std::string& prop, cmMakefile* context) const;
|
2013-09-02 20:27:32 +00:00
|
|
|
bool GetPropertyAsBool(const std::string& prop) const;
|
|
|
|
void CheckProperty(const std::string& prop, cmMakefile* context) const;
|
2007-07-02 17:32:41 +00:00
|
|
|
|
2016-05-16 14:34:04 +00:00
|
|
|
bool IsImported() const { return this->IsImportedTarget; }
|
2015-10-25 11:22:51 +00:00
|
|
|
bool IsImportedGloballyVisible() const
|
2016-05-16 14:34:04 +00:00
|
|
|
{
|
|
|
|
return this->ImportedGloballyVisible;
|
|
|
|
}
|
2002-12-20 22:15:45 +00:00
|
|
|
|
2006-12-07 14:45:32 +00:00
|
|
|
// Get the properties
|
2016-05-16 14:34:04 +00:00
|
|
|
cmPropertyMap& GetProperties() const { return this->Properties; }
|
2006-12-07 14:45:32 +00:00
|
|
|
|
2016-05-16 14:34:04 +00:00
|
|
|
bool GetMappedConfig(std::string const& desired_config, const char** loc,
|
|
|
|
const char** imp, std::string& suffix) const;
|
2012-12-23 10:20:37 +00:00
|
|
|
|
2008-01-28 13:38:36 +00:00
|
|
|
/** Return whether this target is an executable with symbol exports
|
|
|
|
enabled. */
|
2013-10-29 21:21:20 +00:00
|
|
|
bool IsExecutableWithExports() const;
|
2008-01-28 13:38:36 +00:00
|
|
|
|
2008-01-28 18:05:58 +00:00
|
|
|
/** Return whether this target is a shared library Framework on
|
|
|
|
Apple. */
|
2013-10-29 21:21:20 +00:00
|
|
|
bool IsFrameworkOnApple() const;
|
2008-01-28 18:05:58 +00:00
|
|
|
|
2008-01-28 19:46:16 +00:00
|
|
|
/** Return whether this target is an executable Bundle on Apple. */
|
2013-10-29 21:21:20 +00:00
|
|
|
bool IsAppBundleOnApple() const;
|
2008-01-28 19:46:16 +00:00
|
|
|
|
2008-03-13 17:48:57 +00:00
|
|
|
/** Get a backtrace from the creation of the target. */
|
|
|
|
cmListFileBacktrace const& GetBacktrace() const;
|
|
|
|
|
2016-05-16 14:34:04 +00:00
|
|
|
void InsertInclude(std::string const& entry, cmListFileBacktrace const& bt,
|
2012-11-19 21:47:30 +00:00
|
|
|
bool before = false);
|
2015-07-08 21:17:16 +00:00
|
|
|
void InsertCompileOption(std::string const& entry,
|
2016-05-16 14:34:04 +00:00
|
|
|
cmListFileBacktrace const& bt, bool before = false);
|
2015-07-08 21:11:22 +00:00
|
|
|
void InsertCompileDefinition(std::string const& entry,
|
|
|
|
cmListFileBacktrace const& bt);
|
2012-11-05 13:48:42 +00:00
|
|
|
|
2013-01-12 11:11:29 +00:00
|
|
|
void AppendBuildInterfaceIncludes();
|
|
|
|
|
2016-05-16 14:34:04 +00:00
|
|
|
std::string GetDebugGeneratorExpressions(const std::string& value,
|
|
|
|
cmTargetLinkLibraryType llt) const;
|
2013-07-01 20:55:25 +00:00
|
|
|
|
2016-05-16 14:34:04 +00:00
|
|
|
void AddSystemIncludeDirectories(const std::set<std::string>& incs);
|
|
|
|
std::set<std::string> const& GetSystemIncludeDirectories() const
|
|
|
|
{
|
|
|
|
return this->SystemIncludeDirectories;
|
|
|
|
}
|
2013-07-02 12:30:10 +00:00
|
|
|
|
2015-08-04 21:14:53 +00:00
|
|
|
cmStringRange GetIncludeDirectoriesEntries() const;
|
|
|
|
cmBacktraceRange GetIncludeDirectoriesBacktraces() const;
|
|
|
|
|
2015-08-04 21:43:56 +00:00
|
|
|
cmStringRange GetCompileOptionsEntries() const;
|
|
|
|
cmBacktraceRange GetCompileOptionsBacktraces() const;
|
|
|
|
|
2015-08-04 21:48:58 +00:00
|
|
|
cmStringRange GetCompileFeaturesEntries() const;
|
|
|
|
cmBacktraceRange GetCompileFeaturesBacktraces() const;
|
|
|
|
|
2015-08-04 22:00:53 +00:00
|
|
|
cmStringRange GetCompileDefinitionsEntries() const;
|
|
|
|
cmBacktraceRange GetCompileDefinitionsBacktraces() const;
|
|
|
|
|
2015-09-13 08:18:15 +00:00
|
|
|
cmStringRange GetSourceEntries() const;
|
|
|
|
cmBacktraceRange GetSourceBacktraces() const;
|
2015-08-05 16:17:55 +00:00
|
|
|
cmStringRange GetLinkImplementationEntries() const;
|
|
|
|
cmBacktraceRange GetLinkImplementationBacktraces() const;
|
|
|
|
|
2016-05-16 14:34:04 +00:00
|
|
|
struct StrictTargetComparison
|
|
|
|
{
|
2015-10-21 17:48:47 +00:00
|
|
|
bool operator()(cmTarget const* t1, cmTarget const* t2) const;
|
|
|
|
};
|
|
|
|
|
2002-05-01 18:00:21 +00:00
|
|
|
private:
|
2014-05-09 14:50:29 +00:00
|
|
|
bool HandleLocationPropertyPolicy(cmMakefile* context) const;
|
2013-06-28 14:37:39 +00:00
|
|
|
|
2013-10-29 21:21:20 +00:00
|
|
|
const char* GetSuffixVariableInternal(bool implib) const;
|
|
|
|
const char* GetPrefixVariableInternal(bool implib) const;
|
2007-07-02 17:32:41 +00:00
|
|
|
|
2006-02-16 20:19:00 +00:00
|
|
|
// Use a makefile variable to set a default for the given property.
|
|
|
|
// If the variable is not defined use the given default instead.
|
2013-09-02 20:27:32 +00:00
|
|
|
void SetPropertyDefault(const std::string& property,
|
|
|
|
const char* default_value);
|
2006-12-07 14:45:32 +00:00
|
|
|
|
2014-02-10 03:48:34 +00:00
|
|
|
std::string ImportedGetFullPath(const std::string& config,
|
|
|
|
bool implib) const;
|
2008-01-28 13:38:36 +00:00
|
|
|
|
2001-04-19 17:28:46 +00:00
|
|
|
private:
|
2015-06-06 07:44:47 +00:00
|
|
|
mutable cmPropertyMap Properties;
|
|
|
|
std::set<std::string> SystemIncludeDirectories;
|
|
|
|
std::set<std::string> LinkDirectoriesEmmitted;
|
|
|
|
std::set<std::string> Utilities;
|
|
|
|
std::map<std::string, cmListFileBacktrace> UtilityBacktraces;
|
|
|
|
cmPolicies::PolicyMap PolicyMap;
|
2006-03-15 16:02:08 +00:00
|
|
|
std::string Name;
|
2015-06-06 07:44:47 +00:00
|
|
|
std::string InstallPath;
|
|
|
|
std::string RuntimeInstallPath;
|
|
|
|
std::vector<std::string> LinkDirectories;
|
2006-03-15 16:02:08 +00:00
|
|
|
std::vector<cmCustomCommand> PreBuildCommands;
|
|
|
|
std::vector<cmCustomCommand> PreLinkCommands;
|
|
|
|
std::vector<cmCustomCommand> PostBuildCommands;
|
2015-06-06 07:44:47 +00:00
|
|
|
std::vector<std::pair<TLLSignature, cmListFileContext> > TLLCommands;
|
2006-03-15 16:02:08 +00:00
|
|
|
LinkLibraryVectorType PrevLinkedLibraries;
|
2015-06-06 07:44:47 +00:00
|
|
|
LinkLibraryVectorType OriginalLinkLibraries;
|
|
|
|
cmMakefile* Makefile;
|
|
|
|
cmTargetInternalPointer Internal;
|
2015-10-07 22:21:51 +00:00
|
|
|
cmState::TargetType TargetTypeValue;
|
2006-03-15 16:02:08 +00:00
|
|
|
bool HaveInstallRule;
|
2007-07-02 17:32:41 +00:00
|
|
|
bool RecordDependencies;
|
2007-03-19 14:00:36 +00:00
|
|
|
bool DLLPlatform;
|
2014-07-24 19:03:04 +00:00
|
|
|
bool IsAndroid;
|
2007-05-22 14:24:59 +00:00
|
|
|
bool IsImportedTarget;
|
2015-10-25 11:22:51 +00:00
|
|
|
bool ImportedGloballyVisible;
|
2015-06-06 07:44:47 +00:00
|
|
|
bool BuildInterfaceIncludesAppended;
|
2006-01-13 23:18:32 +00:00
|
|
|
|
2014-04-04 15:45:28 +00:00
|
|
|
std::string ProcessSourceItemCMP0049(const std::string& s);
|
|
|
|
|
2015-10-09 21:45:55 +00:00
|
|
|
/** Return whether or not the target has a DLL import library. */
|
|
|
|
bool HasImportLibrary() const;
|
|
|
|
|
2008-02-18 21:38:34 +00:00
|
|
|
// Internal representation details.
|
|
|
|
friend class cmTargetInternals;
|
2012-10-10 22:57:11 +00:00
|
|
|
friend class cmGeneratorTarget;
|
|
|
|
friend class cmTargetTraceDependencies;
|
2008-02-18 21:38:34 +00:00
|
|
|
|
2015-10-10 11:20:09 +00:00
|
|
|
cmListFileBacktrace Backtrace;
|
2001-04-11 18:59:02 +00:00
|
|
|
};
|
|
|
|
|
2014-06-10 17:07:24 +00:00
|
|
|
#ifdef CMAKE_BUILD_WITH_CMAKE
|
2016-06-22 22:16:15 +00:00
|
|
|
#ifdef CMake_HAVE_CXX_UNORDERED_MAP
|
2015-05-16 04:57:53 +00:00
|
|
|
typedef std::unordered_map<std::string, cmTarget> cmTargets;
|
|
|
|
#else
|
|
|
|
typedef cmsys::hash_map<std::string, cmTarget> cmTargets;
|
|
|
|
#endif
|
2014-06-10 17:07:24 +00:00
|
|
|
#else
|
2016-05-16 14:34:04 +00:00
|
|
|
typedef std::map<std::string, cmTarget> cmTargets;
|
2014-06-10 17:07:24 +00:00
|
|
|
#endif
|
2001-04-11 18:59:02 +00:00
|
|
|
|
2016-05-16 14:34:04 +00:00
|
|
|
class cmTargetSet : public std::set<std::string>
|
|
|
|
{
|
|
|
|
};
|
|
|
|
class cmTargetManifest : public std::map<std::string, cmTargetSet>
|
|
|
|
{
|
|
|
|
};
|
2006-04-04 15:48:19 +00:00
|
|
|
|
2001-04-11 18:59:02 +00:00
|
|
|
#endif
|