summaryrefslogtreecommitdiffstats
path: root/Source/cmInstallTargetGenerator.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-10-03 14:11:47 (GMT)
committerBrad King <brad.king@kitware.com>2008-10-03 14:11:47 (GMT)
commit7f819903ed014b9ebd5c931d394d51ae7c0de1a0 (patch)
tree8c8561a5f6e230c87730701a0f8a55ac71254449 /Source/cmInstallTargetGenerator.h
parentadc880d2eb71c080e211bd52f0fdc102a8485f25 (diff)
downloadCMake-7f819903ed014b9ebd5c931d394d51ae7c0de1a0.zip
CMake-7f819903ed014b9ebd5c931d394d51ae7c0de1a0.tar.gz
CMake-7f819903ed014b9ebd5c931d394d51ae7c0de1a0.tar.bz2
BUG: Fix config test for target install rules
In single-configuration generators a target installation rule should apply to all configurations for which the INSTALL command was specified. The configuration in which the target is built does not matter. In multi-configuration generators each installation rule must be associated with a particular build configuration to install the proper file. The set of configurations for which rules are generated is the intersection of the build configurations and those for which the INSTALL command was specified.
Diffstat (limited to 'Source/cmInstallTargetGenerator.h')
-rw-r--r--Source/cmInstallTargetGenerator.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/Source/cmInstallTargetGenerator.h b/Source/cmInstallTargetGenerator.h
index cd4d6e5..0f587e6 100644
--- a/Source/cmInstallTargetGenerator.h
+++ b/Source/cmInstallTargetGenerator.h
@@ -66,14 +66,11 @@ public:
protected:
typedef cmInstallGeneratorIndent Indent;
virtual void GenerateScript(std::ostream& os);
+ virtual void GenerateScriptConfigs(std::ostream& os, Indent const& indent);
+ virtual void GenerateScriptActions(std::ostream& os, Indent const& indent);
void GenerateScriptForConfig(std::ostream& os,
- const char* fromDir,
const char* config,
Indent const& indent);
- void GenerateScriptForConfigDir(std::ostream& os,
- const char* fromDirConfig,
- const char* config,
- Indent const& indent);
void AddInstallNamePatchRule(std::ostream& os, Indent const& indent,
const char* config,
const std::string& toDestDirPath);
@@ -96,6 +93,7 @@ protected:
std::string FilePermissions;
bool Optional;
NamelinkModeType NamelinkMode;
+ std::string FromDir;
};
#endif