Commit Graph

82 Commits

Author SHA1 Message Date
David Cole 693c9a6236 Avoid exceptions when ccmake terminal window is too small (#11668)
Thanks to Nicolas Despres for the patch.
2011-01-19 11:24:36 -05:00
Brad King 5d7c3c0a59 ccmake: Fix search with '/'
Commit 7a18dd8e (Add searching of variables, 2003-03-07) added method
cmCursesMainForm::JumpToCacheEntry to search for cache entries whose
names match a given search string.  The method also had a useless
argument "int idx" probably left from earlier development iterations and
hard-coded in all calls to the value '-1'.  The method compared this
argument to the "NumberOfVisibleEntries" member which at the time was of
type "int" also.

Commit ff1f8d0b (Fix or cast more integer conversions in cmake,
2010-06-29) changed the type of "NumberOfVisibleEntries" to size_t to
fix other integer conversion warnings.  An unsigned type makes sense
given the purpose of the member.  However, this caused the '-1' signed
value to be converted to a large unsigned value in the above-mentioned
comparison, leading to incorrect behavior.

Fix the problem by removing the useless argument and the comparison.
2010-09-16 17:45:27 -04:00
Brad King fec71d8016 Fix signed/unsigned comparison warnings in ccmake
Commit ff1f8d0b (Fix or cast more integer conversions in cmake) changed
a member type from int to size_t.  Update the types of variables
compared to these values to be unsigned also.
2010-06-29 11:09:36 -04:00
Brad King ff1f8d0b53 Fix or cast more integer conversions in cmake
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.
2010-06-29 09:52:12 -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
Brad King b41a548d86 Add parentheses around '&&' between '||' for gcc
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.
2009-09-11 08:18:15 -04:00
Brad King 98c51ff6dc ENH: Overhaul CMake version numbering
This moves the version numbers into an isolated configured header so
that not all of CMake needs to rebuild when the version changes.

Previously we had spaces, dashes and/or the word 'patch' randomly chosen
before the patch number.  Now we always report version numbers in the
traditional format "<major>.<minor>.<patch>[-rc<rc>]".

We still use odd minor numbers for development versions.  Now we also
use the CCYYMMDD date as the patch number of development versions, thus
allowing tests for exact CMake versions.
2009-03-05 15:17:07 -05:00
Bill Hoffman f0a41ce160 BUG: fix for 4026, display a message if ccmake has errors 2008-10-09 12:49:49 -04:00
Bill Hoffman 354abb72d9 ENH: fix it for working with an empty cache 2008-03-07 16:32:09 -05:00
Bill Hoffman 3fa087c8ab ENH: fix make edit_cache for cmake-gui 2008-02-12 09:49:42 -05:00
Bill Hoffman 33170bc371 ENH: there can be only one version 2006-11-29 17:17:16 -05:00
Ken Martin f7217ef344 ENH: remove old unused code 2006-10-06 15:33:16 -04:00
Bill Hoffman 65e3842d51 ENH: only change the cache if the value was really changed 2006-08-10 11:05:44 -04:00
Bill Hoffman e975836292 ENH: not all messages are errors 2006-03-16 11:28:13 -05:00
Ken Martin fb5d92ea37 ENH: m_ cleanup for curses 2006-03-16 10:44:55 -05:00
Brad King c7a75e92c9 COMP: Changed while(1) to for(;;) to avoid warning about constant control expression. 2005-05-03 14:57:32 -04:00
Andy Cedilnik 3bc8cbd475 ENH: Reload PreLoad.cmake every time you do configure 2004-08-17 16:13:31 -04:00
Andy Cedilnik c4805a1b79 ENH: Enable preload for ccmake 2004-08-17 15:36:28 -04:00
Bill Hoffman 2474302c25 ENH: remove deletes 2004-07-20 11:02:12 -04:00
Bill Hoffman 9fe2ab2f71 BUG: fix for 981 cursor returns to correct place in help screen 2004-07-19 13:01:40 -04:00
Brad King 4eb0400c98 ENH: Adding MODIFIED property to cache values that have been changed by the user. 2004-06-23 10:13:02 -04:00
Andy Cedilnik 0986b42761 BUG: Prevent deleting not existing variables and therefore prevent crash. Fixes: Bug #750 - CCMake crashes when deleting all variables 2004-04-15 15:46:58 -04:00
Andy Cedilnik 183273bea2 BUG: Prevent crash when deleting the last cache item 2004-02-22 22:06:33 -05: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
Andy Cedilnik 65dcf074a1 BUG: When only loading ccmake cache, do not allow generate 2003-06-06 09:57:28 -04:00
Andy Cedilnik dfd22fdf23 ENH: On envocation of ccmake check if directories are correct, but do not rerun configure 2003-05-29 11:14:48 -04:00
Andy Cedilnik 889a119474 If there was no error, do not say that there was one 2003-03-17 11:21:05 -05:00
Andy Cedilnik 729bc4cb6d Remove warnings 2003-03-09 18:16:46 -05:00
Andy Cedilnik 063d6b5ecb Remove warning 2003-03-07 11:53:20 -05:00
Andy Cedilnik 7a18dd8edd Add searching of variables 2003-03-07 11:27:28 -05:00
Brad King 486454ef78 BUG: Fixed crash when CMAKE_ROOT cannot be found. 2003-01-22 10:33:34 -05:00
Andy Cedilnik 934d7d3dd6 Rename local variable 2002-11-22 09:45:50 -05:00
Brad King a7da3d4eff ERR: Fixed string literal to char* warnings. 2002-11-21 10:03:36 -05:00
Andy Cedilnik 1d39833446 Add progress to ccmake 2002-11-19 13:09:16 -05:00
Andy Cedilnik 65a814c989 Initial add of progress 2002-11-18 16:29:14 -05:00
Andy Cedilnik 202d2ea69a Revert 2002-11-07 09:15:36 -05:00
Andy Cedilnik 3d4a2fdc52 In certain cases, try to guess the source directory, so that you can run cmake or ccmake without specifying source dir 2002-11-06 12:04:24 -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 c3007233ec Rename variables to remove warnings 2002-10-17 10:51:23 -04:00
Brad King 9d32676b70 ERR: Fixed bad sentence in error message. 2002-09-30 21:34:05 -04:00
Ken Martin f7ec3c2a76 compiler warning 2002-09-22 07:53:55 -04:00
Ken Martin 4267a1b4c1 some cmake api changees 2002-09-17 14:20:07 -04:00
Ken Martin 6844dfd7ca some cmake api changees 2002-09-17 14:04:33 -04:00
Ken Martin b67f7451fd removed extra Generate that was screwing things up 2002-09-14 10:59:06 -04:00
Andy Cedilnik 9ec133d428 Fix bug in ccmake which made it crash when all cache values were deleted 2002-09-11 15:13:32 -04:00
Andy Cedilnik 2ca71beb2a Fix problem with ccmake crashing on empty caches 2002-09-11 15:04:50 -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 2c7e9b3b59 new architecture 2002-09-06 13:00:12 -04:00
Ken Martin e8d0e8088f some changes in cachemanager and singletons 2002-08-28 16:35:54 -04:00