summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.h
Commit message (Collapse)AuthorAgeFilesLines
* CTest: Simplify environment save/restoreBrad King2012-04-241-10/+2
| | | | | | | | Replace use of AppendEnv/RestoreEnv pairs with instances of SaveRestoreEnvironment. Simplify the signature of AppendEnv and use it in place of similar loops elsewhere. Move the RestoreEnv implementation inside the SaveRestoreEnvironment destructor which is the only place left that calls it.
* Merge branch 'target-include-directories' into ninja-generatorDavid Cole2012-02-221-1/+8
|\
| * Merge topic 'interrupt-bug-12649'David Cole2012-02-141-1/+8
| |\ | | | | | | | | | | | | 131eed6 cmake-gui: Improve interrupt granularity to fix bug 12649.
| | * cmake-gui: Improve interrupt granularity to fix bug 12649.Clinton Stimpson2012-01-021-1/+8
| | | | | | | | | | | | | | | | | | | | | Instead of enabling interrupt only when a progress or message callback is called, add a new callback specifically for interrupt. This new callback is called from GetFatalErrorOccured() so cmake-gui can immediately report interrupt status instead of calling queuing a call to cmSystemTools::SetFatalErrorOccured() and waiting for the progress or message callback to be called to process that queued call.
* | | Add cmSystemTools::TrimWhitespace functionPeter Collingbourne2012-02-021-0/+5
|/ /
* | Fix typos arguement -> argument.Stephen Kelly2012-01-081-2/+2
|/
* RunSingleCommand: Add a OUTPUT_NORMAL flag.Johan Björk2011-07-281-2/+7
| | | | | OUTPUT_NORMAL does no processing of the output streams, it just passes them through the same streams as they were received on.
* RunSingleCommand: Replace verbose boolean with enumJohan Björk2011-07-281-6/+12
| | | | | No behaviour change, this prepares for adding a flag to skip the merging of output streams.
* cmSystemTools: Remove trailing whitespaceBrad King2011-07-281-37/+37
|
* Merge topic 'xcode-source_groups-folders-issue-10039'Brad King2011-06-081-0/+3
|\ | | | | | | | | | | | | | | 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/+3
| |
* | Merge topic 'output-compile-lines'Brad King2011-05-241-0/+2
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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/+2
| |/ | | | | | | | | | | | | 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.
* | Improve string(RANDOM) default seedBrad King2011-05-171-0/+3
|/ | | | | | 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.
* CPack Backward-compatibly enforce DESTDIR for DEB and RPMEric NOULARD2010-08-231-0/+6
|
* Remove cmSystemTools::EscapeSpaces methodBrad King2010-08-181-6/+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.
* CPack: Try harder to remove temporary dir (#10793)Brad King2010-06-041-0/+3
| | | | | Windows filesystems sometimes lock files temporarily. Try removing the CPack temp install folder multiple times before giving up.
* Preserve environment variables across calls to ↵David Cole2009-12-231-0/+14
| | | | 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-12/+0
|
* Make new web api safe for bootstrap build.Zach Mullen2009-12-211-12/+12
|
* Added functionality to allow CTest to easily access web APIs. This will be ↵Zach Mullen2009-12-211-0/+12
| | | | used for better communication with CDash.
* Added support for CTest awareness of the CDash version. This will help ↵Zach Mullen2009-12-211-0/+11
| | | | 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.
* Add JOM support and clean up some of the tar -E stuffBill Hoffman2009-11-051-4/+2
|
* 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.
* ENH: Add cmSystemTools::ParseUnixCommandLineBrad King2009-07-131-0/+4
| | | | | This method is a C++ wrapper around the KWSys System library function to parse unix-style command lines.
* ENH: Remove unused cmSystemTools::RemoveEscapesBrad King2009-06-241-7/+1
| | | | | The RemoveEscapes method is no longer used anywhere. All uses of it have been replaced by a real lexer. We can remove the method.
* ENH: move PutEnv to SystemToolsBill Hoffman2009-06-051-4/+0
|
* ENH: Remove obscure method from KWSys SystemToolsBrad King2009-04-211-0/+8
| | | | | This removes SystemTools::FileExistsInParentDirectories from KWSys since it is a special-purpose method that is not generally useful.
* ENH: Move RenameFile to cmSystemToolsBrad King2009-04-151-0/+4
| | | | | | This moves the cmGeneratedFileStream::RenameFile method implementation into cmSystemTools. It works only within a single filesystem volume, but is atomic when the operating system permits.
* ENH: Create cmXMLSafe to help escapes in XMLBrad King2009-02-051-3/+0
| | | | | | | 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.
* ENH: Implement feature request from issue 7885. Allow setting environment ↵David Cole2008-11-261-0/+11
| | | | variables on a per-test basis for ctest using set_test_properties ENVIRONMENT.
* ENH: Inform user when RPATH or RUNPATH is removedBrad King2008-08-141-1/+2
|
* ENH: Added WOW64 key view support to KWSys SystemTools' windows registry API.Brad King2008-05-271-1/+2
| | | | | | | - Add an argument to registry read/write/delete methods to specify a 32-bit or 64-bit view. - Default is the bit-ness of the running program. - See issue #7095.
* ENH: Inform user when RPATH is set during installation.Brad King2008-05-271-1/+2
| | | | | - Original patch from Alex. - Modified to print only when RPATH is actually set.
* ENH: Added RPATH methods to cmSystemToolsBrad King2008-04-141-0/+8
| | | | | - RemoveRPath to remove the RPATH from a binary - CheckRPath to check for an existing RPATH in a binary
* ENH: Added methods to cmSystemTools to save and restore file modification times.Brad King2008-04-141-1/+7
|
* ENH: Cleanup builtin chrpath supportBrad King2008-03-021-0/+1
| | | | | | | | | | | | - Move computation of extended build-tree rpath to cmComputeLinkInformation - Only enable the extended build-tree rpath if the target will be installed - Generalize the interface of file(CHRPATH) - When changing the rpath on installation only replace the part generated by CMake because the native tools (ex SunCC on Linux) might have added their own part to the rpath
* ENH: Use builtin chrpath instead of relinking ELF targetsBrad King2008-03-011-0/+5
| | | | | | | | | | - Add cmSystemTools::ChangeRPath method - Add undocumented file(CHRPATH) command - When installing use file(CHRPATH) to change the rpath instead of relinking - Remove CMAKE_CHRPATH lookup from CMakeFindBinUtils - Remove CMAKE_USE_CHRPATH option since this should always work
* ENH: Improve linking to third-party shared libraries on soname platformsBrad King2008-02-211-0/+4
| | | | | | | | | | | | | | - Reduce false positives in cases of unknown soname - Make library extension regular expressions match only at end of string - When linking to libraries in implicit dirs convert to the -l option only if the file name is one that can be found by the linker (ex. /usr/lib/libfoo.so.1 should be linked by full path) - Add cmSystemTools::GuessLibrarySOName to guess the soname of a library based on presence of a symlink - In cmComputeLinkInformation try to guess an soname before assuming that a third-party library is built without an soname - In cmOrderDirectories guess the soname of shared libraries in cases it is otherwise unknown
* ENH: Add cmSystemTools::ComputeStringMD5 method.Brad King2008-01-241-0/+3
|
* ENH: add ability to have manifest files and incremental linking with make ↵Bill Hoffman2008-01-011-0/+10
| | | | and nmake
* COMP: Fixed error on HP due to newline macro.Brad King2007-12-201-1/+1
|
* ENH: Enabled color printing of "Scanning dependencies of target ..." message.Brad King2007-12-191-0/+6
|
* ENH: Centralized and globalized computation of CMake program locations. ↵Brad King2007-12-131-0/+8
| | | | This eliminates startup paths that failed to produce this information.
* ENH: During file installation treat the source file as a dependency of the ↵Brad King2007-10-051-0/+5
| | | | installed file. Install the file only if the destination is older than the source. Set the file times on the installed file to match those of the source file. This should greatly improve the speed of repeated installations because it removes the comparison of file contents. This addresses bug#3349.
* ENH: fix 2 ctest issues, do not use the build type of ctest to look for ↵Bill Hoffman2007-09-111-0/+6
| | | | config types, do not inherit pipes in child procs for ctest so it can kill them
* ENH: apply patch from Mathieu, add argument -E md5sum to compute md5sums ofAlexander Neundorf2007-07-161-0/+3
| | | | | | files, compatible to md5sum output Alex
* ENH: Added kwsys SystemTools::CreateSymlink and SystemTools::ReadSymlink.Brad King2007-03-121-1/+0
|
* ENH: Added ConvertToOutputSlashes method to convert slashes with the same ↵Brad King2007-03-081-0/+2
| | | | policy as ConvertToOutputPath but without escaping.
* STYLE: Removing unused methods ConvertToShellPath and EscapeForUnixShell.Brad King2007-03-081-4/+0
|