summaryrefslogtreecommitdiffstats
path: root/Source/CPack/cmCPackGenerator.cxx
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'CPackNSIS-warnDESTDIRandABSOLUTE'David Cole2012-05-241-1/+64
|\ | | | | | | | | | | | | | | 4986d52 Use CPACK_xxx and CMAKE_xxx in a consistent way. f90223c Fix KWStyle warning 47f0dbd CPack add necessary check to detect/warns/error on ABSOLUTE DESTINATION 6ba055b CPack add easy possibility to warn about CPACK_SET_DESTDIR
| * Use CPACK_xxx and CMAKE_xxx in a consistent way.Eric NOULARD2012-05-201-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CMAKE_xxx vars are now used in the CMake-generated cmake_install.cmake script while CPACK_xxx equivalent vars are used from within CPack. CPack is responsible for getting/forwarding definitions of CPACK_xxxx var corresponding to CMAKE_xxxx when invoking CMake-generated install scripts. As a consequence: CMAKE_ABSOLUTE_DESTINATION_FILES CMAKE_WARN_ON_ABSOLUTE_INSTALL_DESTINATION CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION may be used from outside CPack as well. e.g. cmake -DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=1 -P cmake_install.cmake works as expected.
| * CPack add necessary check to detect/warns/error on ABSOLUTE DESTINATIONEric NOULARD2012-05-141-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The [usually] wrong usage of absolute DESTINATION in INSTALL rules keeps popping-up on the ML. We shall have some way to: 1) easily detect it. 2) forbids this for some CPack generator like NSIS In fact it should certainly be forbidden for *any* generators when used on Windows but we may implements that on top of the current patch. The patch ask the task to the generated cmake_install.cmake scripts. Those scripts are a little bit more complicated with that but iff there are absolute DESTINATION. This cost nothing if relative DESTINATION are used. Two new vars are introduced (and documented to handle that): CPACK_WARN_ON_ABSOLUTE_INSTALL_DESTINATION and CPACK_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION
| * CPack add easy possibility to warn about CPACK_SET_DESTDIREric NOULARD2012-05-141-1/+31
| | | | | | | | CPackNSIS will only warn but sooner or later it should error out
* | CPack - preserve timestamp for CPACK_INSTALLED_DIRECTORIES. fixes: #0013193Eric NOULARD2012-05-091-2/+5
|/
* Handle CPACK_MONOLITHIC_INSTALL in some rare use cases.Eric NOULARD2012-03-181-0/+6
| | | | | | | | | | | | | For example, when CPACK_<GEN>_COMPONENT_INSTALL and CPACK_MONOLITHIC_INSTALL are both set. Previously, this combination of variable settings produced an error without any explanation. Now, in this case CPACK_MONOLITHIC_INSTALL wins without trouble. This is useful for when e.g. CPACK_ARCHIVE_COMPONENT_INSTALL is globally on and one wants MONOLITHIC install for STGZ (but not other generators). The same behavior may be obtained by re-setting CPACK_ARCHIVE_COMPONENT_INSTALL to 0 but in any case the 'both set' case should have been handled without error.
* CPackArchive restore default behavior and provide new variable.Eric NOULARD2012-02-011-1/+1
| | | | | | | CPACK_COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY should be set by the user in order to get the toplevel directory included in the archive whenever a componentized archive is requested. This solves bug #12129 and keeps fully backward compatible behavior.
* CPack Add top level directory in component install for Archive GeneratorsDaniel Nelson2012-01-131-0/+5
| | | | | This patch fixes bug #0012129 Signed-off-by: Eric NOULARD <eric.noulard@gmail.com>
* CPack: Do not recurse through directory symlinks (#12284)Johan Björk2011-09-061-0/+1
| | | | | | | | ...when building CPack archive-based packages (.tar.gz and similar) Rather, put the symlinks-to-directories into the archive as files, and expect/trust that the things the symlinks point to are also in the archive.
* RunSingleCommand: Replace verbose boolean with enumJohan Björk2011-07-281-1/+1
| | | | | No behaviour change, this prepares for adding a flag to skip the merging of output streams.
* CPackRPM Fix #12096: handle absolute install path with component installEric NOULARD2011-04-171-0/+22
|
* Fix KWStyle warningsEric NOULARD2011-04-041-9/+10
|
* Combine component packaging methods into an enum.Clinton Stimpson2011-03-311-26/+57
| | | | | Also allow generators to override the default packaging method. Add a ONE_PER_GROUP option so that method can be specified by the user without relying on defaults.
* CPack fix #11930 and simplifies component packaging optionsEric NOULARD2011-03-231-18/+9
|
* CPack fix CPackDeb crash when CPackDeb.cmake ends with a FATAL_ERROREric NOULARD2011-03-191-1/+5
|
* CPack fix compile error on VS70 and avoid KWStyle warningsEric NOULARD2011-03-041-5/+9
|
* CPack more robust way to collect files belonging to a componentEric NOULARD2011-03-031-29/+45
|
* CPack fix KWStyle warningEric NOULARD2011-02-231-1/+1
|
* CPack Authorize DISPLAY_NAME usage in component packageEric NOULARD2011-02-221-0/+41
| | | | Second (last) part fix of feature request #11814
* CPackRPM honors all the different ways of packaging componentsEric NOULARD2011-02-061-5/+31
| | | | | | | RPM cannot easily 'merge' differents directory into a single RPM with shared prefix. So more flexibility has been added to generic CPackGenerator in order to let the specific generator chose the local installation directory for each component.
* Merge topic 'CPack-MoreComponentControls'Brad King2010-12-161-1/+7
|\ | | | | | | | | 6d94ea3 CPack use IsOn when it's better than IsSet
| * CPack use IsOn when it's better than IsSetEric NOULARD2010-12-121-1/+7
| | | | | | | | | | | | | | | | This authorize more control because one can set CPACK_ARCHIVE_COMPONENT_INSTALL to ON globally and then set it selectively to OFF inside a CPack project config file. Sidenote: GetOption ought to be a 'const' method.
* | CPack Honor CPACK_MONOLITHIC_INSTALL at CPack time tooEric NOULARD2010-12-121-1/+8
|/
* CPack fix kwstyle breakage and make CPackRPM backward compatibleEric NOULARD2010-11-151-1/+3
| | | | | backward compatible= No componentized RPM unless requested using CPACK_RPM_COMP0NENT_INSTALL
* CPackRPM add basic component support to CPackRPMEric NOULARD2010-11-131-3/+81
| | | | | basic means 1 RPM per component and no dependency handling this implies some CPackGenerator refactoring
* Fix KWStyle line length issues.Bill Hoffman2010-09-151-8/+16
|
* Merge topic 'CPack-PreserveSymlinksInInstalledDirs-v2'Brad King2010-09-081-1/+43
|\ | | | | | | | | 013e003 CPack handle symlinks in CPACK_INSTALLED_DIRECTORIES fix for bug5430
| * CPack handle symlinks in CPACK_INSTALLED_DIRECTORIES fix for bug5430Eric NOULARD2010-08-281-1/+43
| | | | | | | | | | | | | | | | The proposed solution is to avoid to CopyIfDifferent any links found in CPACK_INSTALLED_DIRECTORIES but memorize them instead then at the end of the processing for each dir do re-create the link in the installed tree. Current patch should work if the link are "local" to the directory.
* | Merge topic 'CPackArchiveGenerator-ComponentSupport'Brad King2010-08-311-3/+7
|\ \ | | | | | | | | | | | | | | | | | | | | | a986daf CPack fix broken compilation for CygwinSource generator 873e99a CPackArchiveGenerator improve usability and robustness 654683a CPackArchiveGenerator add component supports 36a550a CPackArchiveGenerator use cmArchiveWrite wrapper
| * | CPackArchiveGenerator add component supportsEric NOULARD2010-08-241-3/+7
| |/
* | CPack Enable better handling of absolute installed filesEric NOULARD2010-08-231-0/+11
| | | | | | | | | | | | | | | | | | | | The idea of the patch is to let the install generator define CPACK_ABSOLUTE_INSTALL_FILES then when CMake is installing project he will concatenate the list of files and give it to specific CPack Generator by defining CPACK_ABSOLUTE_INSTALL_FILES to be the list of ALL files that were installed using absolute destination. An example of use has been applied to RPM generator which now tries to automatically build a relocatable package.
* | CPack Backward-compatibly enforce DESTDIR for DEB and RPMEric NOULARD2010-08-231-2/+14
|/
* CPack: Avoid member shadowing after API refactor (part2)Eric NOULARD2010-08-121-1/+1
| | | | | After converting method arguments to members we need to avoid use of the same names as local variables and other method arguments. One more fix.
* CPack: Avoid member shadowing after API refactorBrad King2010-08-111-4/+4
| | | | | After converting method arguments to members we need to avoid use of the same names as local variables and other method arguments.
* CPack: Refactor API in order to handle multi-file packagesEric NOULARD2010-08-111-25/+47
| | | | | | | | The multi-argument CompressFiles(...) method has been replace by the no-argument PackageFiles() method and 3 more member variables. This will enable implemention of multi-package generators. Now each specific generator (which overloads PackageFiles()) may decide to change the name and/or the number of generated package files.
* CPack: Try harder to remove temporary dir (#10793)Brad King2010-06-041-2/+2
| | | | | Windows filesystems sometimes lock files temporarily. Try removing the CPack temp install folder multiple times before giving up.
* remove unused variables, reported by icpcAlexander Neundorf2009-10-031-4/+0
| | | | Alex
* Fix default install prefix on HaikuBrad King2009-09-301-0/+14
| | | | | | | | Since Haiku does not have /usr (and therefore /usr/local), this commit changes the default install prefix to the equivalent directory of /boot/common. See issue #9607.
* Convert CMake to OSI-approved BSD LicenseBrad King2009-09-281-14/+9
| | | | | | | This converts the CMake license to a pure 3-clause OSI-approved BSD License. We drop the previous license clause requiring modified versions to be plainly marked. We also update the CMake copyright to cover the full development time range.
* BUG: Do not double-initialize local generatorsBrad King2009-07-281-1/+0
| | | | | | | | | All global generator CreateLocalGenerator methods automatically initialize the local generator instances with SetGlobalGenerator. In several places we were calling SetGlobalGenerator again after receiving the return value from CreateLocalGenerator. The double-initializations leaked the resources allocated by the first call to SetGlobalGenerator. This fix removes the unnecessary calls.
* ENH: Create cmXMLSafe to help escapes in XMLBrad King2009-02-051-1/+2
| | | | | | | This class provides easy syntax to efficiently insert blocks of data into XML documents with proper escapes. It replaces the old cmCTest::MakeXMLSafe and cmSystemTools::MakeXMLSafe methods which allocated extra memory instead of directly streaming the data.
* BUG: Use the DESTDIR prefix when creating the directory in CPack when ↵David Cole2008-10-151-8/+24
| | | | CPACK_SET_DESTDIR is ON. Thanks to Petri Hodju for reporting this regression to the CMake mailing list: http://www.cmake.org/pipermail/cmake/2008-October/024563.html.
* STYLE: fix line length issuesBill Hoffman2008-10-021-6/+8
|
* STYLE: fix line length stuff for KWStyleBill Hoffman2008-10-011-9/+16
|
* STYLE: fix compiler warningBill Hoffman2008-09-241-2/+1
|
* STYLE: fix warning and rename methodBill Hoffman2008-09-231-2/+2
|
* BUG: fix 7669, cpack did not work with symlinksBill Hoffman2008-09-221-154/+18
|
* ENH: Further refinement of the CPack components functionality from Doug Gregor.David Cole2008-07-081-0/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Details: ========== - New cpack_add_component, cpack_add_component_group, and cpack_add_install_type "commands" defined as macros in the CPack module. - Documentation for all of the variables and commands in the CPack module. - Added get_cmake_property(... COMPONENTS) to CMake to ask for the names of all components. Used in the CPack module to automatically build component-based installers. (Set CPACK_MONOLITHIC_INSTALL to turn off component-based installation). - A group can declare its PARENT_GROUP, to build an arbitrary hierarchy of groups. - New CPack command cpack_configure_downloads, which creates an installer that downloads only the selected components on-the-fly. Those components marked DOWNLOADED will be separate packages downloaded on-the-fly (or, all packages can be marked as such with the ALL option to cpack_configure_downloads). Individual components are compressed with ZIP at installer-creation time and downloaded/uncompressed by the installer as needed. This feature is only available on Windows with NSIS at the moment. - NSIS installers can install themselves and enable the "Change" button in Add/Remove programs, allowing users to go back and install or remove components. This can be disabled through cpack_configure_downloads, because it's only really useful is most of the application's functionality is in downloaded components. - Bug fix: automatically install everything whose COMPONENT was not specified (it's a hidden, required group) - Bug fix: fixed removal of components when re-running the NSIS installer and unchecking components - Bug fix: NSIS installers now only install/remove the minimal number of files when re-run to update the installation (or by clicking "Change" in Add/Remove programs)
* COMP: Eliminate compiler warning on 64-bit build.David Cole2008-06-181-1/+2
|
* COMP: Fix errors and warnings from continuous dashboards running different ↵David Cole2008-06-171-0/+3
| | | | compilers...