summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.cxx
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'xcode-source_groups-folders-issue-10039'Brad King2011-06-081-0/+32
|\ | | | | | | | | | | | | | | f09ba0f Fix style errors added by parent and grandparent eeeeca1 XCode: Support target folders on XCode. 59ed84e Xcode: Support multiple level nesting of XCode folders (#10039) d0a403f CMake: Move tokenize to cmSystemTools
| * CMake: Move tokenize to cmSystemToolsJohan Björk2011-06-071-0/+32
| |
* | Merge topic 'dont-compress-memcheck-output'Brad King2011-06-021-1/+1
|\ \ | | | | | | | | | | | | | | | | | | 0e591ed Fix type conversion warning 9c3a0b9 We will actually compress memcheck output if the server supports it. 8024c53 Dynamic analysis test output should not be compressed.
| * | We will actually compress memcheck output if the server supports it.Zach Mullen2011-05-261-1/+1
| |/ | | | | | | | | This change won't be functional until the next release of CDash due to the version comparison.
* | Merge topic 'output-compile-lines'Brad King2011-05-241-0/+16
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cdc2b41 Fix CompileCommandOutput test build on Windows 7039d1f Fix CompileCommandOutput test for Make tools not supporting spaces 4268e3d run_compile_commands: Cast istream::get() result to char c45c60b run_compile_commands: Avoid extra stl vector conversion 7c5be51 run_compile_commands: Avoid shadow in std::map<>::at workaround 169bb05 Provide std::map<>::at for use in run_compile_commands 4e2185c Make std::map usage more portable in language=>flags/defines maps a7e7a04 Fix run_compile_commands build on Apple GCC 3.3 c9174c0 Fix signed/unsigned comparison in EscapeJSON 8346a28 Only offer the compile command output feature on unix systems 0e6b05f Adds a test for the compile command line output. 5674844 make compile command output optional fe07b05 implement cxx command output 65c0c24 cache flags and defines 3f064ef refactor flags and defines
| * | run_compile_commands: Avoid extra stl vector conversionBrad King2011-05-181-0/+16
| |/ | | | | | | | | | | | | The Sun compiler does not provide the proper vector constructor to initialize it from an iterator pair of a non-matching type. Extend the ParseUnixCommandLine API to provide a vector of the proper type so no conversion is needed.
* | Explicitly cast time value in cmSystemTools::RandomSeedBrad King2011-05-191-2/+2
| | | | | | | | | | | | | | | | | | | | Use static_cast to avoid warnings like conversion to ‘unsigned int’ from ‘__time_t’ may alter its value conversion to ‘unsigned int’ from ‘__suseconds_t’ may alter its value We do not care if the value is truncated because we are looking for just 32 bits anyway.
* | VS 6: Define _WIN32_WINNT to load wincrypt.h correctlyBrad King2011-05-181-0/+6
| |
* | Improve string(RANDOM) default seedBrad King2011-05-171-0/+64
|/ | | | | | The naive time(0) seed is unique only within one second. Instead try to read a real source of entropy and otherwise fall back to a combination of the process id and high-resolution time.
* Merge topic 'style-line-length'Brad King2010-09-141-1/+2
|\ | | | | | | | | | | 9d21281 Fix line-too-long style errors 86025d3 file(DOWNLOAD): Fix error message formatting
| * Fix line-too-long style errorsBrad King2010-09-101-1/+2
| |
* | Preserve timestamps on files on tar extract.David Cole2010-09-091-2/+10
|/ | | | | Conversion to libarchive changed the behavior of cmake -E tar xzf. This commit fixes that oversight.
* CPack Backward-compatibly enforce DESTDIR for DEB and RPMEric NOULARD2010-08-231-1/+16
|
* Remove cmSystemTools::EscapeSpaces methodBrad King2010-08-181-43/+0
| | | | | | The last remaining call to this method exists only for compatibility. Remove the method and put its implementation inline in place of the last call.
* Add ZIP archive format and LZMA compress support to libarchive-wrapperEric NOULARD2010-08-131-1/+2
| | | | | | | This will be needed to use cmArchiveWrire in cmCPackArchiveGenerator with the same feature set as before. Note that adding zip support to libarchive-wrapper would also makes it easy to add a new -E zip command to cmake commands.
* Include entries for directories in tarballs (#11020)Brad King2010-08-061-123/+22
| | | | | | Use libarchive through class cmArchiveWrite to implement the method cmSystemTools::CreateTar. The class includes entries for directories by automatically traversing the tree on disk.
* Include headers from chosen libarchive (#10923)Brad King2010-08-051-2/+1
| | | | | When CMAKE_USE_SYSTEM_LIBARCHIVE is on we must include the system libarchive headers to match the library that will be linked.
* Fix or cast more integer conversions in cmakeBrad King2010-06-291-4/+4
| | | | | These were revealed by GCC's -Wconversion option. Fix types where it is easy to do so. Cast in cases we know the integer will not be truncated.
* Fix or cast integer conversions in cmakeBrad King2010-06-251-3/+3
| | | | | These were revealed by GCC's -Wconversion option. Fix types where it is easy to do so. Cast in cases we know the integer will not be truncated.
* CPack: Try harder to remove temporary dir (#10793)Brad King2010-06-041-0/+15
| | | | | Windows filesystems sometimes lock files temporarily. Try removing the CPack temp install folder multiple times before giving up.
* Do not list file names during 'cmake -E tar xz'Brad King2010-05-051-1/+2
| | | | | | | Since commit "Switch to using libarchive from libtar" (2009-10-30) the the implementation of "tar xz" has printed all paths from the tarball as a single line with no separator. This fixes the logic to extract silently as expected.
* Add missing archive_read_finish calls to fix some of the presently reported ↵David Cole2009-12-281-1/+1
| | | | valgrind memory leaks.
* Preserve environment variables across calls to ↵David Cole2009-12-231-0/+12
| | | | cmCTestScriptHandler::RunConfigurationScript. This will help prevent problems like we are currently experiencing (regarding CMake continuous dashboards only running once each day because the HOME environment variable is modified indirectly by a command in a called script, but affects the environment in the calling script).
* Move cURL dependent code out of CMakeLib to fix complex tests.Zach Mullen2009-12-221-53/+0
|
* Fix broken bootstrap testZach Mullen2009-12-221-2/+1
|
* Make new web api safe for bootstrap build.Zach Mullen2009-12-211-0/+2
|
* Added functionality to allow CTest to easily access web APIs. This will be ↵Zach Mullen2009-12-211-0/+52
| | | | used for better communication with CDash.
* Added support for CTest awareness of the CDash version. This will help ↵Zach Mullen2009-12-211-0/+27
| | | | forward compatibility for both tools. Note that this changeset effectively makes the default to disable output compression. Now, to enable output compression, the CDASH_CTEST_VERSION must be explicity set to >= 1.6. Automated detection of the CDash version is the next step.
* use different tar format to handle longer file namesBill Hoffman2009-11-141-1/+1
|
* Show the current file when there is a tar errorBill Hoffman2009-11-131-0/+2
|
* fix warning for borlandBill Hoffman2009-11-131-0/+3
|
* Fix missing return value.Bill Hoffman2009-11-121-0/+1
|
* Fix for working with symlinks in tar filesBill Hoffman2009-11-091-29/+29
|
* Fix some warningsBill Hoffman2009-11-081-2/+2
|
* go back to running stat and put size check inBill Hoffman2009-11-081-4/+4
|
* Remove check for now so test passes on linuxBill Hoffman2009-11-081-0/+2
|
* create a better error messageBill Hoffman2009-11-081-1/+5
|
* add much better error checking on libarchive calls.Bill Hoffman2009-11-081-22/+44
|
* Fix compiler error in cmSystemTools.cxxZach Mullen2009-11-051-1/+0
|
* Add JOM support and clean up some of the tar -E stuffBill Hoffman2009-11-051-10/+15
|
* Fix style warning in cmsystemtools, cosmetic change to ctest codeZach Mullen2009-11-051-1/+2
|
* Fix unused param warning resulting from libarchive API change.Zach Mullen2009-11-041-0/+1
|
* Fix warnings for unused variablesBill Hoffman2009-11-031-2/+1
|
* Switch to using libarchive from libtar for cpack and cmake -E tarBill Hoffman2009-10-301-253/+314
| | | | | | This allows for a built in bzip and zip capability, so external tools will not be needed for these packagers. The cmake -E tar xf should be able to handle all compression types now as well.
* Fix more mismatched new[] / delete[] (eliminate invalid auto_ptr use) to ↵David Cole2009-10-301-7/+13
| | | | correct valgrind reported memory issues.
* Fix warnings in CMake source code.David Cole2009-10-021-4/+8
|
* Fix warnings in CMake source code. Suppress rampant warnings emanating from ↵David Cole2009-10-011-4/+5
| | | | Qt files.
* 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.
* Add parentheses around '&&' between '||' for gccBrad King2009-09-111-6/+6
| | | | | | | The GNU compiler warns about possible operator precedence mistakes and asks for explicit parentheses (-Wparentheses). We add the parentheses to silence the warning. This also fixes one real logic error in the find_package() implementation by correcting expression evaluation order.
* COMP: Include <malloc.h> for 'free' on QNXBrad King2009-07-131-0/+3
|