mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-22 06:59:01 -06:00
install: Record TARGET mode backtraces internally
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#include "cmConfigure.h" // IWYU pragma: keep
|
||||
|
||||
#include "cmInstallGenerator.h"
|
||||
#include "cmListFileCache.h"
|
||||
#include "cmScriptGenerator.h"
|
||||
|
||||
#include <iosfwd>
|
||||
@@ -21,11 +22,12 @@ class cmLocalGenerator;
|
||||
class cmInstallTargetGenerator : public cmInstallGenerator
|
||||
{
|
||||
public:
|
||||
cmInstallTargetGenerator(std::string const& targetName, const char* dest,
|
||||
bool implib, const char* file_permissions,
|
||||
std::vector<std::string> const& configurations,
|
||||
const char* component, MessageLevel message,
|
||||
bool exclude_from_all, bool optional);
|
||||
cmInstallTargetGenerator(
|
||||
std::string const& targetName, const char* dest, bool implib,
|
||||
const char* file_permissions,
|
||||
std::vector<std::string> const& configurations, const char* component,
|
||||
MessageLevel message, bool exclude_from_all, bool optional,
|
||||
cmListFileBacktrace const& backtrace = cmListFileBacktrace());
|
||||
~cmInstallTargetGenerator() override;
|
||||
|
||||
/** Select the policy for installing shared library linkable name
|
||||
@@ -64,6 +66,8 @@ public:
|
||||
|
||||
std::string GetDestination(std::string const& config) const;
|
||||
|
||||
cmListFileBacktrace const& GetBacktrace() const { return this->Backtrace; }
|
||||
|
||||
protected:
|
||||
void GenerateScript(std::ostream& os) override;
|
||||
void GenerateScriptForConfig(std::ostream& os, const std::string& config,
|
||||
@@ -108,6 +112,7 @@ protected:
|
||||
NamelinkModeType NamelinkMode;
|
||||
bool ImportLibrary;
|
||||
bool Optional;
|
||||
cmListFileBacktrace Backtrace;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user