Rolf Eike Beer
eca523fbd4
wizard: simplify control flow
...
Checking if a byte is 0 before checking it for something else doesn't do
anything useful. Also one can be sure that it can't be anything wanted
if the value was set to 0 immediately before.
2013-05-22 12:52:12 -04:00
Rolf Eike Beer
f1d27bf667
wizard: fix warnings
...
.../Source/cmakewizard.cxx: In member function ‘virtual void cmakewizard::AskUser(const char*, cmCacheManager::CacheIterator&)’:
.../Source/cmakewizard.cxx:31:35: warning: conversion to ‘int’ from ‘long unsigned int’ may alter its value [-Wconversion]
if(!fgets(buffer, sizeof(buffer)-1, stdin))
^
.../Source/cmakewizard.cxx: In member function ‘virtual bool cmakewizard::AskAdvanced()’:
.../Source/cmakewizard.cxx:70:35: warning: conversion to ‘int’ from ‘long unsigned int’ may alter its value [-Wconversion]
if(!fgets(buffer, sizeof(buffer)-1, stdin))
The compiler is (partly) right here: sizeof() returns a size_t, which often is
bigger as as int as it is unsigned long or something similar. Add an explicit
cast to get rid of that warning here, the buffer has a size of 4KiB, so the
value will fit into an int on all sane platforms.
2013-05-21 23:33:54 +02: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
David Cole
ccb0cf1306
Fix warnings in CMake source code.
2009-10-02 15:30:01 -04:00
David Cole
44bcba7461
Fix warnings in CMake source code. Suppress rampant warnings emanating from Qt files.
2009-10-01 16:47:08 -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
Ken Martin
3d96e52261
STYLE: some m_ to this-> cleanup
2006-03-15 11:02:08 -05:00
Andy Cedilnik
634343c3e8
STYLE: Fix some style issues
2006-03-10 13:06:26 -05:00
Bill Hoffman
5bf55d1590
ENH: shorten the symbols a bit and remove maps of std::string for map of cmStdString
2004-09-29 16:07:07 -04:00
Brad King
41445f67ac
BUG: Fixed crash of cmake -i when CMAKE_ROOT cannot be found. Made resulting error message cleaner.
2003-08-26 15:06:52 -04:00
Ken Martin
072db6ad70
removed redundent includes
2003-08-10 18:30:54 -04:00
Brad King
88e1571c76
BUG#129: Fixed load/save of CMakeCache.txt when it is not in the current directory.
2003-08-06 18:39:16 -04:00
Bill Hoffman
6dda0c976f
BUG: can not mix cout and fgets on hp
2003-01-30 13:19:58 -05:00
Brad King
1f6a3c67b1
ENH: Added reference to Copyright.txt. Removed old reference to ITK copyright. Changed program name to CMake instead of Insight in source file header. Also removed tabs.
2002-10-23 18:03:27 -04:00
Andy Cedilnik
56b69e5fcc
Remove unnecessary variable
2002-09-18 08:13:53 -04:00
Andy Cedilnik
8491551d6a
Strip the string that user answers
2002-09-17 14:19:50 -04:00
Ken Martin
2a68d21e85
cleaned up some of the cmake interface
2002-09-17 13:59:58 -04:00
Andy Cedilnik
d1fbb556eb
Replace getline with fgets since getline does not seems to work properly on Mac OSX
2002-09-17 13:48:30 -04:00
Andy Cedilnik
628625af72
Simplify code. Since we access cache entry through the iterator, we do not need the cache manager any more
2002-09-12 09:00:30 -04:00
Andy Cedilnik
bef93dc5c1
Couple of changes: cache variables now have a map of properties. ADVANCED and HELPSTRING are now properties of cache variable, IsAdvanced is gone, so is GetCacheEntry, since cache entries are now all private. To access them, you use the iterator. -ADVANCED cache entries are gone and are replaced by the property of cache variables. The cache file still looks the same, but the -ADVANCED cache entries are created when writing file. MarkAsAdvanced and VariableRequires are fixed. So are curses gui and wizard
2002-09-11 14:05:45 -04:00
Ken Martin
25ff4552b3
new arch
2002-09-06 13:06:23 -04:00
Ken Martin
d0be2896d7
changed cache manager and registered generators to no longer be singletons
2002-08-28 14:51:10 -04:00
Ken Martin
15b2d2f2a6
support for plugins
2002-08-21 11:59:52 -04:00
Bill Hoffman
d14a2314e5
check bool values and prefere off
2002-02-28 15:57:45 -05:00
Will Schroeder
a6a43d5320
ENH:Updated copyright
2002-01-21 15:30:43 -05:00
Bill Hoffman
26ecd7731d
ENH: call convert to unix slashes for path and filepath entries
2001-12-06 17:09:06 -05:00
Bill Hoffman
0d3eefb1f1
new borland generator moved into place
2001-11-30 16:48:52 -05:00
Bill Hoffman
15805d260e
fix for shared libs and borland
2001-11-29 09:09:11 -05:00
Bill Hoffman
eecf4b9cbf
ENH: add advanced variable types and command line wizard gui
2001-11-26 18:28:27 -05:00