Stephen Kelly
c70b9b51d9
Fix style.
2013-05-16 19:33:13 +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
Alex Neundorf
9dbba1b464
Fix #12342 : Add APPEND_STRING option to set_property()
...
set_property() has APPEND, which creates a list. E.g. when
appending to COMPILE_FLAGS a string is needed, not a list.
With the APPEND_STRING option the value is append as string,
not as list.
Alex
2011-07-15 20:57:33 +02:00
Ben Boeckel
8b143fab66
Condense parsing of cache entries
...
If a cache line is being parsed, it shouldn't matter whether it has a
type or not; just parse it however possible.
2010-11-22 15:45:30 -05: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
74b79d3b39
Remove barely-used cmCacheManager::AddCacheEntry
...
The commit "Remove barely-used cmMakefile::AddCacheDefinition" removed
all but one use of the cmCacheManager method 'bool' overload. This
commit removes the other use and the entire method, thus reducing code
duplication.
2009-09-11 10:04:10 -04:00
Brad King
5e49dc4346
BUG: Fix cache properties for CMAKE_STRICT build
...
All cmPropertyMap instances must have CMakeInstance set. This teaches
cmCacheManager to set it on cache entries.
2009-03-13 10:53:47 -04:00
Brad King
1b43bea91c
ENH: Refactor cache entry writing and reading
...
This factors out duplicated code into reusable methods, thus simplifying
writing and reading of cache entry help strings, keys, values, and
properties.
2009-03-12 10:49:05 -04:00
Brad King
32258b44bc
ENH: Document CACHE entry properties
...
This adds a property documentation section for CACHE properties.
We document the ADVANCED, HELPSTRING, TYPE, and VALUE properties.
2009-03-10 11:11:15 -04:00
Brad King
e5e91d6179
ENH: Teach set/get_property about CACHE properties
...
This adds the CACHE option to set_property and get_property commands.
This allows full control over cache entry information, so advanced users
can tweak their project cache as desired. The set_property command
allows only pre-defined CACHE properties to be set since others would
not persist anyway.
2009-03-10 11:10:59 -04:00
Brad King
ca9fb4826f
ENH: Use cmPropertyMap for cache properties
...
This re-implements cache entry property storage in cmCacheManager to use
cmPropertyMap so it can share the standard property implementation.
2009-03-10 11:10:42 -04:00
Ken Martin
55eede4b13
ENH: clean up some policy stuff and interactions with CMAKE_BACKWARDS_COMPATIBILITY and CMAKE_MINIMUM_REQUIRED
2008-03-07 11:43:47 -05:00
Brad King
44cf465ff5
BUG: Fix uninitialzed members of cmCacheManager.
2008-01-29 17:30:48 -05:00
Brad King
7213408287
ENH: Added cmMakefile::NeedCacheCompatibility method and support for it in cmCacheManager. This will allow commands to modify their behavior when running with a cache loaded from an earlier CMake version.
2008-01-24 07:37:08 -05:00
Brad King
5239769f5c
BUG: When a non-cache variable is marked as advance do not use the cmMakefile implementation of AddCacheDefinition to avoid removing the makefile definition.
2007-04-10 16:03:10 -04:00
Ken Martin
3d96e52261
STYLE: some m_ to this-> cleanup
2006-03-15 11:02:08 -05:00
Bill Hoffman
6b47b28867
ENH: fix line length style stuff
2006-03-10 11:13:15 -05:00
Bill Hoffman
8cdb87eaa7
ENH: if CMakeCache.txt has been removed, then automatically remove CMakefiles/*.cmake
2006-03-09 15:47:18 -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
Ken Martin
d7c6f51d00
updates to gui to delete cache
2004-05-20 15:08:18 -04:00
Andy Cedilnik
91065673d6
ENH: Get accessor for cache value as boolean
2003-08-08 09:22:56 -04:00
Andy Cedilnik
32bfe66b5d
BUG: Fix problem with uninitialized variables
2003-08-02 09:33:23 -04:00
Andy Cedilnik
2f98c791fa
ENH: Allow specifying cmake variables on the command line without specifying the type Bug #118 - Specifying cache entries with -D should not need the type
2003-08-01 14:10:26 -04:00
Andy Cedilnik
42db187012
ENH: Add method to convert from CacheEntryType to string
2003-04-29 10:02:53 -04:00
Andy Cedilnik
6631d78754
Cache manager should be able to take no arguments
2003-03-06 11:18:58 -05:00
Brad King
5bcd9203c3
ENH: Better error checking for cache iterator.
2003-02-05 14:55:46 -05:00
Bill Hoffman
b123c07ecf
rename foo variables to better names
2002-11-20 18:18: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
577cf91945
Fix problems with advanced not being marked.
2002-09-17 11:48:52 -04:00
Andy Cedilnik
c478520cab
Fix build problem on Sun
2002-09-12 08:56:32 -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
7f76762c07
made method public
2002-09-04 15:46:25 -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
499bd45d4d
removed shared lib support
2002-08-23 16:13:34 -04:00
Ken Martin
13d4f89dfe
compiler warnings
2002-08-23 15:13:49 -04:00
Bill Hoffman
3f36d23421
BUG: add explicit clean up of the cachemanager at exit of programs, so dll destruction is not a problem.
2002-08-23 13:46:32 -04:00
Ken Martin
34c7c1b78d
made CMakeLib shared on windows
2002-08-21 11:57:12 -04:00
Brad King
8ed3ce29bf
ERR: Removed cmCacheManager::DefineCache method. It is no longer needed.
2002-01-22 10:17:37 -05:00
Will Schroeder
a6a43d5320
ENH:Updated copyright
2002-01-21 15:30:43 -05:00
Bill Hoffman
eecf4b9cbf
ENH: add advanced variable types and command line wizard gui
2001-11-26 18:28:27 -05:00
Bill Hoffman
f7fae15d39
ENH: add command line arguments to set cache entries
2001-11-20 17:51:03 -05:00
Bill Hoffman
ddd5a7d729
ENH: change all maps of string to be maps of cmStdString, to reduce symbol length in object files.
2001-08-22 11:58:17 -04:00
Berk Geveci
3b9f97f32d
Adding new options to LoadCache.
2001-08-16 11:41:44 -04:00
Berk Geveci
06a0f67f93
1. Added EXCLUDE option to LOAD_CACHE.
...
2. Entries brought in from another cache are now marked as internal.
2001-08-15 13:40:56 -04:00
Bill Hoffman
db1303aa7d
ENH: big change, only allow commands access to the cache via the cmMakefile class and GetDefinition, also the cmMakefile is the only way for commands to add to the cache. Also, some changes to configure.in that check for for scoping
2001-08-08 11:54:46 -04:00
Bill Hoffman
4f77d737c9
ENH: move utilities to targets from makefile, and add versioning to cache
2001-06-07 14:52:29 -04:00
Bill Hoffman
1cd9ce6f6e
ENH: unify make process on unix
2001-05-16 15:15:21 -04:00
Ken Martin
36b4fbb1f4
added ability to load another cache
2001-05-08 17:04:22 -04:00
Ken Martin
ed4f14fb42
added method to puch cache into makefile defines
2001-05-01 16:28:32 -04:00
Will Schroeder
54cfe84f3f
ENH:New copyright
2001-04-27 08:01:17 -04:00