Commit Graph

477 Commits

Author SHA1 Message Date
Brad King b9a5dccc8d ENH: Added RPATH methods to cmSystemTools
- RemoveRPath to remove the RPATH from a binary
  - CheckRPath to check for an existing RPATH in a binary
2008-04-14 15:02:34 -04:00
Brad King 9b8404a305 COMP: Fix new cmSystemTools file time methods on Windows. 2008-04-14 12:44:01 -04:00
Brad King 703b8c8225 ENH: Added methods to cmSystemTools to save and restore file modification times. 2008-04-14 11:43:45 -04:00
Bill Hoffman 0a61a70870 BUG: undo change as it breaks preprocess test for some reason?? 2008-04-08 17:37:13 -04:00
Bill Hoffman 5a079b151a BUG: half fix for 6688, expand registry stuff on unix just like it was not found on windows 2008-04-08 16:06:44 -04:00
Bill Hoffman cec897edc4 ENH: half fix for 6688, don't let [ count go negative 2008-04-08 16:05:23 -04:00
Brad King 871d80696b ENH: Update cmSystemTools::ChangeRPath to support replacing rpath values from the middle of the string. 2008-04-08 13:42:30 -04:00
Brad King c408760a8a ENH: Improve error message when installation file(CHRPATH) cannot change the RPATH. 2008-04-07 10:55:52 -04:00
Bill Hoffman cae34d2df3 ENH: try to fix mac symlinks to the executable 2008-03-28 14:29:29 -04:00
Brad King 34a338dcc1 ENH: In cmSystemTools::ChangeRPath check for the RUNPATH if RPATH does not exist. 2008-03-02 16:19:26 -05:00
Brad King d732de4a8a ENH: Cleanup builtin chrpath support
- 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
2008-03-02 14:35:23 -05:00
Brad King 32ca01bef0 COMP: Fix unused parameter warning when cmSystemTools::ChangeRPath is built without ELF support. 2008-03-01 15:16:49 -05:00
Brad King 26e58b74d1 BUG: Fix cmSystemTools::ChangeRPath to not complain if there is no RPATH entry in the file but the requested new rpath is empty. 2008-03-01 13:17:01 -05:00
Brad King 34c76d4304 ENH: Use builtin chrpath instead of relinking ELF targets
- 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
2008-03-01 12:51:07 -05:00
Brad King 4c137bad6b ENH: Add ELF file parsing
- Enabled when system provides elf.h
  - Introduce cmELF class to parse ELF files
  - Use in cmSystemTools::GuessLibrarySOName to really get soname
2008-02-27 16:26:35 -05:00
Brad King 782e9f7ffe ENH: Improve linking to third-party shared libraries on soname platforms
- 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
2008-02-21 13:58:41 -05:00
Brad King 386a6ebf25 COMP: Need to return a value from fake MD5 method under bootstrap. 2008-01-25 08:11:04 -05:00
Brad King f1c5b50cb7 COMP: Cannot do MD5 from KWSys during CMake bootstrap. 2008-01-24 16:11:06 -05:00
Brad King 1dec54489a ENH: Add cmSystemTools::ComputeStringMD5 method. 2008-01-24 14:41:18 -05:00
Bill Hoffman b479c6a8a9 ENH: add ability to have manifest files and incremental linking with make and nmake 2008-01-01 15:13:41 -05:00
Brad King 73704ede42 ENH: Enabled color printing of "Scanning dependencies of target ..." message. 2007-12-19 17:15:41 -05:00
Brad King 9f61e2a235 ENH: Centralized and globalized computation of CMake program locations. This eliminates startup paths that failed to produce this information. 2007-12-13 17:56:50 -05:00
Brad King e684c35295 STYLE: Fixed line-too-long. 2007-10-08 10:05:42 -04:00
Brad King 5df777edd7 COMP: Added inadvertantly removed include. 2007-10-08 10:03:37 -04:00
Brad King 71400cad02 COMP: Simplified include file logic. The windows.h header should be included for all compilers on windows. 2007-10-07 16:22:16 -04:00
Ken Martin adffd10cce COMP: fix to compile on VS 8 2007-10-05 15:51:01 -04:00
Brad King 23c6b90080 BUG: Fix call to SetFileTime to set it on the proper file. 2007-10-05 10:03:16 -04:00
Brad King a2b2742543 ENH: During file installation treat the source file as a dependency of the 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. 2007-10-05 09:46:28 -04:00
Bill Hoffman 887699184a COMP: remove warnings 2007-09-27 14:44:11 -04:00
Bill Hoffman 9c3ffe2474 BUG: fix problem with stdout and stderr not showing up in ms dos shells 2007-09-25 10:57:49 -04:00
Bill Hoffman 150805258a ENH: add new machines 2007-09-24 13:21:25 -04:00
Bill Hoffman c190756e24 ENH: fix warning 2007-09-17 11:17:38 -04:00
Bill Hoffman 66a094a9eb ENH: opps 2007-09-11 12:23:59 -04:00
Bill Hoffman f262298bb0 ENH: fix 2 ctest issues, do not use the build type of ctest to look for config types, do not inherit pipes in child procs for ctest so it can kill them 2007-09-11 11:21:36 -04:00
Alexander Neundorf f13c3eef83 COMP: patch from Mathieu: fix warning about unused variables in bootstrap
mode

Alex
2007-08-14 10:27:34 -04:00
Bill Hoffman c693a23a7d ENH: use gnu tar for cygwin 2007-07-30 22:51:21 -04:00
Alexander Neundorf e69958c3cf BUG: fix bootstrapping, md5sum disabled in bootstrapping mode
Alex
2007-07-16 15:10:40 -04:00
Alexander Neundorf 5bb94ce166 ENH: apply patch from Mathieu, add argument -E md5sum to compute md5sums of
files, compatible to md5sum output

Alex
2007-07-16 10:54:32 -04:00
Brad King 9bfe711ef1 BUG: Fix ExpandListArgument when the string ends in a backslash. 2007-05-17 11:27:46 -04:00
Brad King e01cdf2065 ENH: Added kwsys SystemTools::CreateSymlink and SystemTools::ReadSymlink. 2007-03-12 13:50:28 -04:00
Brad King 91c2b84a92 ENH: Added ConvertToOutputSlashes method to convert slashes with the same policy as ConvertToOutputPath but without escaping. 2007-03-08 11:49:26 -05:00
Brad King d37577d9e0 STYLE: Removing unused methods ConvertToShellPath and EscapeForUnixShell. 2007-03-08 09:48:17 -05:00
Bill Hoffman 5647e6e254 ENH: fix parens in the path with spaces in the path 2007-02-21 21:24:17 -05:00
Brad King d37abb6b5d ENH: Added EscapeWindowsShellArgument and ParseWindowsCommandLine methods to cmSystemTools. 2007-02-01 11:45:37 -05:00
Brad King 0fcccb151f ENH: Changes from Ryan C. Gordon to fix old process execution on BeOS. 2006-12-14 10:03:25 -05:00
Bill Hoffman c2308e796f COMP: fix line length style error 2006-12-05 09:14:32 -05:00
Bill Hoffman 3a32cec969 ENH: merge in changes for beos support 2006-12-04 17:26:41 -05:00
Brad King f91b3c1daa ENH: Add options to build with system utility libraries. Organize inclusion of third party libraries into a single header per library. This addresses bug#3653. 2006-10-19 15:00:10 -04:00
Andy Cedilnik a9c0929d39 COMP: Handle both ansi and non-ansi C 2006-07-26 11:46:22 -04:00
Ken Martin daa37f1163 STYLE: fix line length 2006-05-12 13:53:21 -04:00
Ken Martin d81ebf0c23 ENH: added support for -SP scripts in new processes 2006-04-04 13:04:28 -04:00
Andy Cedilnik b507f8f0d1 ENH: Simplify the test 2006-03-17 16:14:04 -05:00
Andy Cedilnik b20cb78049 ENH: Handle missing unsetenv and add check for environ 2006-03-17 15:46:20 -05:00
Bill Hoffman ca8d1bc99b ENH: make cmake compile 2006-03-17 15:33:21 -05:00
Andy Cedilnik 733a0e787e COMP: Fix windows 2006-03-17 12:31:35 -05:00
Andy Cedilnik 0addc75520 COMP: Handle windows with hack for now 2006-03-17 12:24:37 -05:00
Andy Cedilnik d5631f370b ENH: Add a method to remove environment variables 2006-03-17 11:44:07 -05:00
Andy Cedilnik fe1fda6431 ENH: Use vector of plain strings and add cmake -E command for getting environment 2006-03-17 11:14:14 -05:00
Andy Cedilnik f44fedd3e9 ENH: Add access for all environment variables 2006-03-17 10:58:37 -05:00
Andy Cedilnik f483e48d2a ENH: Cleanup DynamicLoader so that the symbols have more consistent names, start using dynamic loader from kwsys in CMake 2006-03-16 11:01:05 -05:00
Bill Hoffman 89e5fc63fe STYLE: fix line lengths 2006-03-10 13:54:57 -05:00
Andy Cedilnik ff50bb9f77 BUG: Even more VS8 issues 2006-03-01 13:05:57 -05:00
Brad King f2cf7e9197 ENH: Enable capture of output from VCExpress.exe and devenv.exe. 2006-02-15 10:22:55 -05:00
Brad King db0681d2f6 ENH: Adding option to return empty arguments when expanding a list. 2006-02-09 19:03:27 -05:00
Andy Cedilnik e5a8e115bc ENH: Move relative path to kwsys 2006-02-07 10:23:17 -05:00
Andy Cedilnik 1e6bc6e5ee COMP: Remove warnings on HP-UX 2006-01-03 08:39:24 -05:00
Andy Cedilnik 8477aa59e5 ENH: Merge from cpack branch 2006-01-01 23:31:17 -05:00
Andy Cedilnik 6534e66e61 COMP: Fix warning on sun 2005-12-30 16:28:30 -05:00
Andy Cedilnik 00371678d3 COMP: Remove sun warning 2005-12-30 15:32:20 -05:00
Andy Cedilnik bb618a7db5 ENH: Cleanup the file handler stuf so that now any file descriptor type can be used 2005-12-30 14:51:15 -05:00
Andy Cedilnik 7b02221059 COMP: Remove unused variable 2005-12-30 14:31:13 -05:00
Andy Cedilnik 6d0f0e0acb COMP: Fix support for gzip on non-32 bit platforms 2005-12-30 14:22:46 -05:00
Andy Cedilnik 081625c610 COMP: Use mangle names 2005-12-30 12:58:33 -05:00
Andy Cedilnik abe4fd77fc ENH: Make the syntax more line tar 2005-12-29 12:19:13 -05:00
Andy Cedilnik d1180fc4e1 ENH: Add untaring support 2005-12-29 10:43:12 -05:00
Andy Cedilnik 2fcd41323b COMP: Fix complex test and fix bootstrap 2005-12-28 17:02:16 -05:00
Andy Cedilnik 0ef674b906 COMP: Add missing include 2005-12-28 16:53:46 -05:00
Andy Cedilnik 7a49a0ce4a BUG: Return proper values 2005-12-28 16:44:32 -05:00
Andy Cedilnik fdc844ecdb ENH: Add method to create tar 2005-12-28 16:30:55 -05:00
Bill Hoffman 452925649a ENH: add better support for framework linking 2005-12-26 13:14:19 -05:00
Brad King 0df3c162fb BUG: Do not dereference an end iterator. 2005-11-17 15:44:43 -05:00
Brad King 1c96fa4a41 BUG: RunSingleCommand should translate NULL characters in the output to valid text. This should fix the missing-output problem caused by NULL-characters in VS build output. 2005-08-17 17:39:59 -04:00
Brad King bac564356b COMP: Added pragma directives for SGI compilers to avoid useless warnings. 2005-05-03 14:58:13 -04:00
Andy Cedilnik c09f6172a4 ENH: Improve performance by using vector of char instead of string 2005-04-13 16:25:55 -04:00
Brad King e2ec4a1845 ENH: Adding kwsys::SystemTools::FileTimeCompare method to compare file modification times with the highest resolution possible on the file system. 2005-02-17 11:28:13 -05:00
Andy Cedilnik ad5115d00f ENH: Add support for single ' 2005-02-17 10:51:18 -05:00
Brad King 1c663cf41c BUG: Fix to avoid relative path with ..s all the way to the root. 2004-12-09 16:14:46 -05:00
Bill Hoffman ef07a8565e COMP: remove an unused variable warning 2004-10-25 13:40:17 -04:00
Bill Hoffman 626be7884a FIX: go back to not trying to handle spaces in the path for run single command and comment it so that people know to call the right thing 2004-10-25 13:16:05 -04:00
Bill Hoffman 7ed631311c FIX: fix RunSingleCommand to work with spaces in the path, and with an already quoted command 2004-10-25 11:59:50 -04:00
Bill Hoffman 9f98481a65 undo last check in as it breaks borland with spaces some how 2004-10-22 21:03:56 -04:00
Bill Hoffman 040f776885 FIX: fix the problem where a target is a single character and nmake gets confused and add a test for it 2004-10-22 17:00:00 -04:00
Bill Hoffman e9b6e65cbd BUG: if the paths share nothing then just return the remote path with no .. 2004-10-19 13:02:42 -04:00
Bill Hoffman 89d35bc8fb ENH: better comments and variable names 2004-10-18 13:19:43 -04:00
Brad King b4176dcab9 ENH: Added FileTimeCompare method to compare file modification times. Currently the resolution is limited to one second. 2004-10-15 09:23:14 -04:00
Bill Hoffman ef8385744b BUG: allow split string to know if it is separating a path 2004-10-14 11:46:30 -04:00
Bill Hoffman 78e8f12b86 BUG: fix and comment relative path funciton 2004-10-13 11:37:55 -04:00
Andy Cedilnik 3fc7dc5e70 ENH: Move permissions code to kwsys so that copyfile can use it. Fixes Bug #1133 - cmake -E copy file dir sets the wrong permissions on the destination directory 2004-09-29 12:20:52 -04:00
Bill Hoffman 2a1bbabb6b ENH: minor fortran fixes 2004-08-11 16:37:56 -04:00
Bill Hoffman 9655299f08 ENH: initial fortran support 2004-08-06 14:51:41 -04:00
Brad King 40a5bad916 ENH: Made RunSingleCommand take a double as its timeout length. 2004-07-02 16:27:46 -04:00
Bill Hoffman 2705b1bf73 BUG: fix spaces in path on mingw, and change EXEC_PROGRAM to return false when it does not run, also do not convert the directory to an output path for EXEC_PROGRAM as this is done by the process execution, and doing it twice may cause trouble on some shells. 2004-06-23 16:34:38 -04:00
Bill Hoffman f1842f9137 BUG: fix spaces in path with mingw and custom commands 2004-06-22 17:23:28 -04:00
Bill Hoffman f49e76899c ENH: speed up for NOTFOUND 2004-05-21 11:52:07 -04:00
Bill Hoffman 35cacf367b BUG: back out change due to broken dashboard 2004-05-20 21:27:37 -04:00
Bill Hoffman 66288b115e ENH: remove regex use where strcmp is faster 2004-05-20 17:33:58 -04:00
Andy Cedilnik 61f602d668 BUG: If the line ends without new-line character, Split should still return something 2004-04-20 18:28:23 -04:00
Andy Cedilnik 6ab87555ea ERR: Fix crash. We should check output before appending to it 2004-02-24 18:48:44 -05:00
Andy Cedilnik c6c1f70012 ENH: Put Process execution errors in output and honor verbosity 2004-02-24 10:04:02 -05:00
Bill Hoffman 6b6971a2c2 BUG: fix FMM 2004-01-27 14:51:18 -05:00
Andy Cedilnik 09421a261c ENH: Preserve permissions when copying files 2004-01-26 15:50:38 -05:00
Andy Cedilnik 900ad59867 ERR: Fix build problems on Visual Studio 6 2004-01-26 15:03:09 -05:00
Andy Cedilnik 7527fbccc2 ENH: Add code for setting and getting permissions 2004-01-26 14:55:57 -05:00
Andy Cedilnik 0217af3b58 ENH: Improve calling of RunSingle command and fix compile error 2004-01-26 14:41:29 -05:00
Bill Hoffman 1d958cad60 ENH: forgot return value 2004-01-26 14:00:22 -05:00
Bill Hoffman 222e9a2876 BUG: fix put/get env problems 2004-01-26 13:32:46 -05:00
Brad King f86424414f BUG: ::Stdout method should flush cout after writing data. 2004-01-21 15:55:47 -05:00
Bill Hoffman 1690c45626 ENH: dont do relative paths when nothing is relative 2004-01-20 14:35:25 -05:00
Brad King 79a1734269 ENH: Added more error state checks to RunSingleCommand. 2004-01-15 08:50:37 -05:00
Bill Hoffman 2c2291bbe0 ENH: add new feature to ctest so that it can cmake, build and run a test executable 2004-01-07 11:24:22 -05:00
Brad King bcd4f87414 BUG: Do not call cmsysProcess_GetErrorString unless GetState returns State_Error. 2003-12-30 10:26:18 -05:00
Andy Cedilnik 32accc1607 BUG: For consistency, use cmStdString. Also, there was a bug in SplitString which make it lose the first character. 2003-12-26 15:00:27 -05:00
Bill Hoffman 0bdb092a01 ENH: add relative paths to visual studio 6 and 7 project files 2003-12-22 16:21:27 -05:00
Bill Hoffman eb9fc21543 ENH: add support for relative paths in makefiles 2003-12-22 12:24:26 -05:00
Andy Cedilnik 5b232ded15 ENH: Add initial memory check support which works for Valgrind 2003-12-15 17:26:00 -05:00
Brad King ec78910bac BUG: Reimplemented ExpandListArguments to properly handle escaped backslashes that occur right before semicolons. This is important for lists of paths ending in backslashes on windows. 2003-12-08 18:05:29 -05:00
Ken Martin 06092a31fd bug fix to escaped semicolons in arguments 2003-12-08 16:10:48 -05:00
Brad King ed853b5d70 ENH: Removed pipe selection argument from WaitForData method in kwsysProcess. This greatly simplifies its use. 2003-12-05 11:53:17 -05:00
Brad King 8876adcd81 ERR: Fixed unused parameter warnings. 2003-11-26 16:11:43 -05:00
Brad King 9a58ac6649 ENH: Added CreateSymlink method. 2003-11-26 14:52:12 -05:00
Brad King 945fcb581d BUG: Do not use std::string to accumulate output. Use std::vector instead. This is much better at memory management. 2003-11-26 11:41:57 -05:00
Andy Cedilnik d21532cd02 ENH: Ok, no more argument needed for script mode 2003-10-29 19:49:50 -05:00
Bill Hoffman a413160fec ENH: add the unix makefile generator as an option from the windows GUI, this builds with mingw, cygwin, and combinations of make cl, bcc32 2003-08-21 16:22:23 -04:00
Andy Cedilnik d0c039e9a4 ENH: Fix hidden console for ctest 2003-08-12 17:18:16 -04:00
Ken Martin 072db6ad70 removed redundent includes 2003-08-10 18:30:54 -04:00
Andy Cedilnik 028f5aa2c7 ENH: Abstract parsing of arguments so that I can use it in other places 2003-08-07 19:00:53 -04:00
Brad King 999810bc52 ENH: Hide windows for processes run by RunSingleCommand. 2003-08-06 13:48:14 -04:00
Andy Cedilnik 867f88a93f ENH: Improve paths on windows 2003-08-04 11:48:18 -04:00
Andy Cedilnik 4515c33d32 ENH: Fix escaping on windows 2003-08-04 07:55:40 -04:00
Andy Cedilnik d86d2fdf12 ENH: Fix argument parsing on UNIX with spaces 2003-08-04 07:12:42 -04:00
Andy Cedilnik 8a31793c89 ENH: Add back the kwsysProcess RunCommand, now is in parallel 2003-08-03 22:32:15 -04:00
Brad King a6fd6a0bae ENH: Added escape support for ( and ). 2003-07-09 17:25:24 -04:00
Brad King 40c156dead ENH: Added support for # characters inside quoted arguments and for escaping # in a non-quoted argument. Improved parsing speed by not compiling regular expressions on blank lines. 2003-07-09 17:17:34 -04:00
Brad King cbb1de923a BUG: Parsing of arguments from string by RunCommand before passing to Process execution does not work with backslashes in path names. Until this is fixed, we cannot use Process execution from kwsys. 2003-07-07 18:27:57 -04:00
Brad King 7479303e01 ENH: Using new Process SetWorkingDirectory method instead of manually implementing it. 2003-07-07 09:16:36 -04:00
Brad King ccc629702c ENH: Using kwsys Process implementation to implement RunCommand. 2003-07-07 08:41:28 -04:00
Brad King 45e508f530 ERR: Renamed superclass typedef from SystemTools to Superclass to avoid conflict across platforms. 2003-06-24 10:16:28 -04:00
Brad King 38482b46d1 ENH: Merged use of the kwsys RegularExpression class instead of cmRegularExpression. 2003-06-23 14:10:12 -04:00
Brad King dc3fd5c267 ENH: Merged use of kwsys library. 2003-06-23 08:58:58 -04:00
Ken Martin 590460aaae new function 2003-06-19 14:27:01 -04:00