Clinton Stimpson
5730710c86
Use cmsys::[io]fstream instead of cmsys_ios::[io]fstream.
...
Also use SystemTools::Fopen() instead of fopen().
This is to eventually support utf-8 filenames.
2014-01-07 09:27:44 -05:00
Kitware Robot
7bbaa4283d
Remove trailing whitespace from most CMake and C/C++ code
...
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/ \+$//'
2012-08-13 14:18:39 -04:00
Brad King
96afb12087
Convert CMake to OSI-approved BSD License
...
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.
2009-09-28 11:43:28 -04:00
Brad King
516add4d58
ENH: On VMS use _dir and _tmp, not .dir and .tmp
...
The VMS posix path emulation does not handle multiple '.' characters in
file names in all cases. This avoids adding extra '.'s to file and
directory names for target directories and generated files.
2009-06-10 13:03:11 -04:00
Brad King
d3363beb2f
ENH: Move RenameFile to cmSystemTools
...
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.
2009-04-15 09:57:57 -04:00
David Cole
867de7fc67
ENH: Add ability to call Visual Studio macros from CMake. Add a CMake Visual Studio macro to reload a solution file automatically if CMake makes changes to .sln files or .vcproj files. Add code to call the macro automatically for any running Visual Studio instances with the .sln file open at the end of the Visual Studio Generate call. Only call the macro if some .sln or .vcproj file changed during Generate. Also, add handling for REG_EXPAND_SZ type to SystemTools::ReadRegistryValue - returned string has environment variable references expanded.
2007-11-16 07:01:58 -05:00
Bill Hoffman
887699184a
COMP: remove warnings
2007-09-27 14:44:11 -04: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
Ken Martin
71b993560b
STYLE: fix line length
2006-05-10 15:56:00 -04:00
Ken Martin
3d96e52261
STYLE: some m_ to this-> cleanup
2006-03-15 11:02:08 -05:00
Andy Cedilnik
9ab3b14c77
COMP: Remove warning
2006-01-12 14:21:37 -05:00
Andy Cedilnik
7089a17c47
COMP: Fix compile error that was caused by the binary flag
2006-01-12 09:20:53 -05:00
Andy Cedilnik
867c3a763e
ENH: Add support for binary
2006-01-11 19:06:54 -05:00
Andy Cedilnik
8b0c04724c
BUG: Fix the compression with custom extension
2006-01-02 10:36:44 -05:00
Andy Cedilnik
b7ba65ed68
ENH: Add a way to overwrite compression extension
2006-01-02 07:52:54 -05:00
Andy Cedilnik
efcb43a88f
ENH: Allow changing of file name
2005-05-10 11:11:28 -04:00
Andy Cedilnik
b59dd02911
ENH: For sanity, create directory before creating generated file stream
2005-04-13 18:13:09 -04:00
Brad King
389f24f777
ENH: Added Close method and updated Open method to allow streams to be reused.
2005-04-05 08:25:21 -04:00
Brad King
562b0b820f
COMP: Fix unused parameter warning when bootstrapping.
2005-01-28 17:25:51 -05:00
Andy Cedilnik
14477cee6e
ENH: Add compression support
2005-01-27 10:14:24 -05:00
Brad King
aaac6f2c3a
ENH: Added default constructor and Open method.
2005-01-26 14:25:16 -05:00
Brad King
a5ae290a5b
STYLE: Adjusted signature of cmGeneratedFileStream to make copy-if-different more explicity.
2004-11-03 07:51:51 -05:00
Brad King
e34207c1f0
COMP: Fix new cmGeneratedFileStream for MSVC.
2004-11-03 07:27:44 -05:00
Brad King
d46d8df0ed
ENH: Re-implemented cmGeneratedFileStream to look like a real stream and replace the destination file atomically. This will avoid problems with the process being terminated while generating a file.
2004-11-03 07:23:18 -05:00