summaryrefslogtreecommitdiffstats
path: root/Source/CPack/cmCPackGenericGenerator.h
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2007-10-31 12:50:17 (GMT)
committerDavid Cole <david.cole@kitware.com>2007-10-31 12:50:17 (GMT)
commit5beb1da7f741c50659204cf1fbd264b5dcb7dd02 (patch)
tree3f380217cabb03a40aac217a2cde19346bb05ab9 /Source/CPack/cmCPackGenericGenerator.h
parent0386e711b8de89051bf1e1fdb178c0ab7a28132b (diff)
downloadCMake-5beb1da7f741c50659204cf1fbd264b5dcb7dd02.zip
CMake-5beb1da7f741c50659204cf1fbd264b5dcb7dd02.tar.gz
CMake-5beb1da7f741c50659204cf1fbd264b5dcb7dd02.tar.bz2
ENH: Add CPACK_SET_DESTDIR handling to enable packaging of installed files in absolute locations. With this setting on, cpack will set the DESTDIR env var when building the package so that files end up in their intended locations. Default behavior is not to set DESTDIR for backwards compatibility. Helps address issue #4993 and issue #5257. Also, remove unused CPACK_USE_DESTDIR variable. ENH: Add variable CPACK_PACKAGING_INSTALL_PREFIX to allow overriding the CPack GetPackagingInstallPrefix from a project's CMakeLists file if necessary. Could be used to remove the annoying /usr prefix still used by default in the Mac PackageMaker generator.
Diffstat (limited to 'Source/CPack/cmCPackGenericGenerator.h')
-rw-r--r--Source/CPack/cmCPackGenericGenerator.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/Source/CPack/cmCPackGenericGenerator.h b/Source/CPack/cmCPackGenericGenerator.h
index 7e0b10a..ea59a91 100644
--- a/Source/CPack/cmCPackGenericGenerator.h
+++ b/Source/CPack/cmCPackGenericGenerator.h
@@ -18,7 +18,6 @@
#ifndef cmCPackGenericGenerator_h
#define cmCPackGenericGenerator_h
-
#include "cmObject.h"
#define cmCPackTypeMacro(class, superclass) \
@@ -102,8 +101,7 @@ protected:
virtual int CompressFiles(const char* outFileName, const char* toplevel,
const std::vector<std::string>& files);
virtual const char* GetInstallPath();
- virtual const char* GetInstallPrefix() { return "/"; }
- virtual const char* GetTemporaryInstallDirectoryPostfix() { return ""; }
+ virtual const char* GetPackagingInstallPrefix();
virtual std::string FindTemplate(const char* name);
virtual bool ConfigureFile(const char* inName, const char* outName,
@@ -114,13 +112,13 @@ protected:
//! Run install commands if specified
virtual int InstallProjectViaInstallCommands(
- bool movable, const char* tempInstallDirectory);
+ bool setDestDir, const char* tempInstallDirectory);
virtual int InstallProjectViaInstallScript(
- bool movable, const char* tempInstallDirectory);
+ bool setDestDir, const char* tempInstallDirectory);
virtual int InstallProjectViaInstalledDirectories(
- bool movable, const char* tempInstallDirectory);
+ bool setDestDir, const char* tempInstallDirectory);
virtual int InstallProjectViaInstallCMakeProjects(
- bool movable, const char* tempInstallDirectory);
+ bool setDestDir, const char* tempInstallDirectory);
bool GeneratorVerbose;
std::string Name;