summaryrefslogtreecommitdiffstats
path: root/Source/CPack
Commit message (Collapse)AuthorAgeFilesLines
* CPack: Avoid "format expects 'unsigned int'" warningsPaul Kunysch2013-03-221-4/+4
| | | | | Cast sprintf uid and gid arguments to match the type expected by their "%-6u" format strings.
* CPack: Fix NSIS version check without release version (#9721)Gerald Hofmann2013-03-081-12/+24
| | | | | | | | | | Only check a release version for the minimum required version. If NSIS returns a CVS build version string (as when built by Macports), skip the version check altogether and assume a sufficiently new version. Also correctly handle the case where the version check fails and the CPACK_TOPLEVEL_DIRECTORY option is not set. Co-Author: Graham Menhennitt <graham@menhennitt.com.au>
* Fail early if no current working directory existsBrad King2013-02-071-3/+2
| | | | | | | Remove the old "nocwd" behavior that attempts to provide the "--help" output when no working directory is available. The long help output scrolls the real error message out of typical terminal sizes. Also execute as little code as possible when no working directory exists.
* Haiku no longer defines __BEOS__Rolf Eike Beer2013-01-071-2/+2
|
* CPack: WIX Product Icon, UI Banner, UI Dialog support (#13789)Eric LaFranchi2012-12-281-0/+3
|
* CPack: Fix dashboard errors and warnings (#11575)David Cole2012-12-045-21/+21
| | | | | | | | | | | ...revealed by the Nightly dashboard runs last night. Use "size_t" instead of "std::size_t" so that it compiles with Visual Studio 6, too. Fix warnings about shadowed "tmp" local variable and ordering of member variables vs. lines of code in the constructor initializer list.
* CPack: Fix dashboard warnings (#11575)David Cole2012-12-031-6/+7
| | | | | Fix int vs. size_t conversion warnings that only showed up in the 64-bit builds.
* CPack: Fix dashboard errors (#11575)David Cole2012-12-031-2/+2
| | | | | | Use same technique here with UuidToString as already found in cmGlobalVisualStudio7Generator::CreateGUID to avoid using a type that is not defined on older systems... (VS 7.0 and Borland)
* CPack: Add a WiX Generator (#11575)Nils Gladitz2012-12-037-0/+1118
| | | | | | | | | | This new CPack generator produces an *.msi installer file. Requires having the WiX Toolset installed in order to work properly. Download the WiX Toolset installer "WiX36.exe" here: http://wix.codeplex.com/releases/view/93929
* Merge topic 'use-cmsys-auto_ptr'Brad King2012-11-272-4/+2
|\ | | | | | | | | ddc0520 Always use the auto_ptr from cmsys.
| * Always use the auto_ptr from cmsys.Stephen Kelly2012-11-202-4/+2
| | | | | | | | | | | | This is for consistency throughout cmake. The cmsys version exists becaues uses of auto_ptr types as return types does not work with some implementations in ancient compilers.
* | CPack/NSIS: Add support for 64-bit NSIS (#13203)David Golub2012-11-203-2/+25
|/
* Merge topic 'CPack-BugFixesSet'Brad King2012-11-131-1/+0
|\ | | | | | | | | b6f7881 Remove seemingly bogus duplicate CPACK_PACKAGE_FILE_NAME call.
| * Remove seemingly bogus duplicate CPACK_PACKAGE_FILE_NAME call.Andreas Mohr2012-11-111-1/+0
| | | | | | | | Signed-off-by: Eric NOULARD <eric.noulard@gmail.com>
* | Correct string literal typo (have "(NULL)" like all other cases).Andreas Mohr2012-11-101-1/+1
|/ | | | Signed-off-by: Eric NOULARD <eric.noulard@gmail.com>
* Merge topic 'deb-rpm-all_components_in_one'Brad King2012-11-062-4/+20
|\ | | | | | | | | e7e2694 CPack: Fix RPM/Deb package names to not include "ALL_COMPONENTS_IN_ONE"
| * CPack: Fix RPM/Deb package names to not include "ALL_COMPONENTS_IN_ONE"Clinton Stimpson2012-11-062-4/+20
| |
* | Merge topic 'packagemaker-component-postflight'David Cole2012-10-313-36/+97
|\ \ | | | | | | | | | | | | 4374441 PackageMaker: Enable postflight script in component mode (#12375)
| * | PackageMaker: Enable postflight script in component mode (#12375)Clinton Stimpson2012-10-313-36/+97
| |/ | | | | | | | | | | | | | | | | | | | | Previously, setting CPACK_POSTFLIGHT_SCRIPT had no effect in component mode, when CPACK_COMPONENTS_ALL was set. In component mode, a .mpkg is created that contains multiple .pkg's. Because postflight scripts only work in a .pkg, add another .pkg to the .mpkg and put the postflight script in that. This is the same approach taken by the PackageMaker GUI when adding a postflight script to a metapackage.
* | Merge topic 'cpack-rez-error'David Cole2012-10-311-1/+16
|\ \ | | | | | | | | | | | | 14561e3 Fix for possible Rez errors when creating dmg.
| * | Fix for possible Rez errors when creating dmg.Clinton Stimpson2012-10-231-1/+16
| |/ | | | | | | | | Rez appears to have a limit on the length of lines it processes. Break up long lines from a license file to avoid the error.
* | Merge topic 'fix-9629-add-unicode-nsis-reg-key'David Cole2012-10-311-7/+19
|\ \ | |/ |/| | | | | 668dda0 CPack: Add automatic detection of the Unicode makensis (#9629)
| * CPack: Add automatic detection of the Unicode makensis (#9629)David Cole2012-10-171-7/+19
| |
* | Merge topic 'CPack-ArchiveGen-andDESTIR_ON'David Cole2012-10-171-1/+1
|\ \ | | | | | | | | | | | | ddec053 Make CPACK_SET_DESTDIR work with archive generator + component-based packaging
| * | Make CPACK_SET_DESTDIR work with archive generator + component-based packagingEric NOULARD2012-10-141-1/+1
| |/ | | | | | | Fix bug #13004. The patch is from Stanislaw Szymczyk.
* | Merge topic 'fix-some-CPackDoc-typos'David Cole2012-10-171-4/+14
|\ \ | | | | | | | | | | | | 2aad678 Document CPACK_COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY and fix some typo.
| * | Document CPACK_COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY and fix some typo.Eric NOULARD2012-10-141-4/+14
| |/
* | CPACK_XX_ON_ABSOLUTE_INSTALL_DESTINATION is now properly checked for ON/OFFEric NOULARD2012-10-141-2/+2
|/ | | | This fixes bug #0013490
* Enhance DESTDIR documentation. Fixes #0012374.Eric NOULARD2012-08-141-3/+4
|
* Remove trailing whitespace from most CMake and C/C++ codeKitware Robot2012-08-1321-216/+216
| | | | | | | | | | | | | | | | | Our Git commit hooks disallow modification or addition of lines with trailing whitespace. Wipe out all remnants of trailing whitespace everywhere except third-party code. Run the following shell code: git ls-files -z -- \ bootstrap doxygen.config '*.readme' \ '*.c' '*.cmake' '*.cpp' '*.cxx' \ '*.el' '*.f' '*.f90' '*.h' '*.in' '*.in.l' '*.java' \ '*.mm' '*.pike' '*.py' '*.txt' '*.vim' | egrep -z -v '^(Utilities/cm|Source/(kwsys|CursesDialog/form)/)' | egrep -z -v '^(Modules/CPack\..*\.in)' | xargs -0 sed -i 's/ \+$//'
* Merge topic 'DoNotInvokeCPackAtCMakeTime-forCMakeTests'David Cole2012-07-242-1/+7
|\ | | | | | | | | | | | | b47cffa CPack: Use bin subdir when looking for dpkg and rpmbuild a8c659c Find dpkg and rpmbuild in usual Fink and MacPort paths 848f220 Do not run cpack at CMake time it is not available.
| * CPack: Use bin subdir when looking for dpkg and rpmbuildDavid Cole2012-07-202-4/+4
| |
| * Find dpkg and rpmbuild in usual Fink and MacPort pathsEric NOULARD2012-07-022-1/+7
| |
* | Merge topic 'CPack-honorCPACK_XXX-valuesInScriptFile'David Cole2012-07-091-3/+16
|\ \ | | | | | | | | | | | | 05a8630 Do not provide defaul value for CPACK_PACKAGE_DIRECTORY if found in config.
| * | Do not provide defaul value for CPACK_PACKAGE_DIRECTORY if found in config.Eric NOULARD2012-07-041-3/+16
| |/ | | | | | | This fixes bug #0012906.
* | CPack fix regression between 2.8.7 and 2.8.8 when running cpack with no arg.Eric NOULARD2012-07-031-2/+6
|/ | | | | | | | In 2.8.7 running cpack with no arguments would run the packaging iff a CPackConfig.cmake file is found whereas In 2.8.8 it displays the help. This commit restore the 2.8.7. We should add a test for this but this is not included in this commit.
* CPack: Fixed incorrect error log for CPACK_NSIS_MENU_LINKS.Fraser Hutchison2012-05-281-2/+2
| | | | | | This was a pull request: https://github.com/Kitware/CMake/pull/5 Signed-off-by: Eric NOULARD <eric.noulard@gmail.com>
* Merge topic 'CPack-activateRPM-DEB-onMacOS'David Cole2012-05-244-30/+108
|\ | | | | | | | | | | 801ea70 Calm down Borland compiler warning about "always true" 2a34b57 CPack allow RPM and DEB generator to be used on OSX.
| * Calm down Borland compiler warning about "always true"Eric NOULARD2012-05-211-0/+4
| |
| * CPack allow RPM and DEB generator to be used on OSX.Eric NOULARD2012-05-204-30/+104
| | | | | | | | | | | | | | | | | | More generally add the check for possible generator "activation" at runtime depending on a generator specific check. The dynamic behavior is currently implemented only for MacOS and should be fully backward compatible for other system. Inspired-By Tom Hughes <tomtheengineer@gmail.com>
* | Merge topic 'CPackNSIS-warnDESTDIRandABSOLUTE'David Cole2012-05-245-1/+143
|\ \ | | | | | | | | | | | | | | | | | | | | | 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-202-5/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-145-1/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-144-1/+63
| | | | | | | | | | | | 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
|/ /
* | Use fakeroot for control.tar.gz as wellEric NOULARD2012-04-171-5/+10
|/
* Merge topic 'CPack-fixCPACK_MONOLITHIC_INSTALL-handling'Brad King2012-03-195-3/+23
|\ | | | | | | | | 805c1b2 Handle CPACK_MONOLITHIC_INSTALL in some rare use cases.
| * Handle CPACK_MONOLITHIC_INSTALL in some rare use cases.Eric NOULARD2012-03-185-3/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Merge topic 'CPack-fixSTGZpermission-bug13046'Brad King2012-03-191-7/+18
|\ \ | | | | | | | | | | | | 4576f40 CPack STGZ put execute permission on all packages files (component case)
| * | CPack STGZ put execute permission on all packages files (component case)Eric NOULARD2012-03-181-7/+18
| |/