Stephen Kelly
ba404938a2
cmCacheManager: Port consumers to non-iterator API.
...
This simplifies reasoning about the follow-up commit which ports
away from cmCacheManager to a class with the same method names.
2015-04-08 18:47:00 +02:00
Stephen Kelly
9e64156725
cmMakefile: Port away from CacheEntry.Initialized.
...
The API has no other external users.
2015-04-08 18:47:00 +02:00
Stephen Kelly
77f2807ce5
cmCacheManager: Rename GetCacheValue to GetInitializedCacheValue.
...
Being initialized is a requirement for this method to return something,
and is what differentiates it from using GetIterator with it.GetValue.
2015-04-07 23:25:44 +02:00
Stephen Kelly
1f2c12ebd1
cmMakefile: Remove cache version accessors.
...
They are only used by legacy code. Inline them there to simplify
cmMakefile.
2015-04-07 23:25:35 +02:00
Stephen Kelly
97c50a8dbd
cmMakefile: Simplify GetDefinitions implementation.
2015-04-07 23:25:31 +02:00
Brad King
3347c5e4f9
Revert topic 'refactor-cache-api'
...
This topic was never tested without some follow-up commits. The
GetCacheEntryValue API returns a pointer to memory freed on return.
It will have to be revised along with the rest of the original topic.
2015-04-07 17:15:04 -04:00
Stephen Kelly
9410e24a4a
cmCacheManager: Port consumers to non-iterator API.
...
This simplifies reasoning about the follow-up commit which ports
away from cmCacheManager to a class with the same method names.
2015-04-06 17:58:55 +02:00
Stephen Kelly
2e50f5e7d9
cmMakefile: Port away from CacheEntry.Initialized.
...
The API has no other external users.
2015-04-06 17:58:55 +02:00
Stephen Kelly
9ada4c0433
cmCacheManager: Rename GetCacheValue to GetInitializedCacheValue.
...
Being initialized is a requirement for this method to return something,
and is what differentiates it from using GetIterator with it.GetValue.
2015-04-06 17:58:55 +02:00
Stephen Kelly
08c642c6ae
cmMakefile: Remove cache version accessors.
...
They are only used by legacy code. Inline them there to simplify
cmMakefile.
2015-04-06 17:58:54 +02:00
Stephen Kelly
cec8f97e57
cmMakefile: Simplify GetDefinitions implementation.
2015-04-06 17:58:54 +02:00
Stephen Kelly
c37cf7fa9e
cmCacheManager: Remove unused method
2015-04-05 10:26:10 +02:00
Stephen Kelly
06f61c26cf
Do not treat DEFINITIONS as a built-in directory property
...
Add policy CMP0059 to cover this change. The property has been
deprecated since CMake 2.4 anyway.
This will help clean up cmMakefile -- the DefineFlagsOrig member should
not need to exist.
2015-04-02 13:00:48 -04:00
Stephen Kelly
f2e07a6d90
cmMakefile: Remove unused PreOrder member.
...
Remove references from dependendent API.
2015-04-01 20:32:48 +02:00
Stephen Kelly
aafe282188
cmMakefile: Remove unused Prefix member.
...
Unused since it was added in commit 1f42f521
(NEW: move from tools
and config to create CMake, 2000-08-29).
2015-04-01 20:32:48 +02:00
Stephen Kelly
1fcf590b14
cmMakefile: Remove unused SubDirectoryOrder member.
...
The last use was removed in v2.4.0~2054 (ENH: add support for out
of source source, 2005-03-14)
2015-04-01 20:32:47 +02:00
Stephen Kelly
c3a60cc9cc
cmMakefile: Remove AddExtraDirectory method.
...
It has no effect.
2015-04-01 20:32:47 +02:00
Bill Hoffman
a4a1b729c6
Fix warnings from clang scanbuild.
2015-03-25 12:38:37 -04:00
Brad King
15b06bc012
Merge topic 'cmAlgorithms-cleanup'
...
95dd238f
cmRemoveDuplicates: Fix iterator -> const_iterator.
4448f175
cmInstalledFile: Move Property implementation out of line.
7916d7ba
Include cmAlgorithms where it is used.
2015-03-12 15:26:35 -04:00
Stephen Kelly
7916d7bac6
Include cmAlgorithms where it is used.
2015-03-11 00:17:29 +01:00
Nils Gladitz
242c396656
add_custom_command: Diagnose MAIN_DEPENDENCY limitation.
...
The new policy CMP0057 diagnoses reuse of the same MAIN_DEPENDENCY across
multiple custom commands.
2015-03-09 12:45:38 +01:00
Brad King
6dc9a627b6
Merge topic 'minor-cleanups'
...
c021f59c
cmMakefile: Store macro list in a vector not in a map.
2d130896
cmMakefile: Fix list of macros generation.
f1969234
cmFunctionCommand: Remove ineffectual code.
1116698a
cmTarget: Don't needlessly clear vectors in the destructor.
2015-02-23 10:26:42 -05:00
Stephen Kelly
c021f59c1f
cmMakefile: Store macro list in a vector not in a map.
...
The signature was computed (incorrectly) and stored as the map
value, but never used. Remove it now.
2015-02-21 11:25:47 +01:00
Stephen Kelly
2d130896a0
cmMakefile: Fix list of macros generation.
...
It was broken by commit 7ee56f03
(Convert loops into the commonly
used pattern., 2015-01-17).
2015-02-21 11:25:26 +01:00
Stephen Kelly
416df93aa9
Convert some raw loops to cmWrap.
2015-02-20 21:36:57 +01:00
Stephen Kelly
f20a4257f2
cmMakefile: Add flag to result and manipulate in place.
...
Rather than creating a string, manipulating it, and then
copying it to the result.
2015-02-18 23:57:59 +01:00
Stephen Kelly
ee269f4f16
cmMakefile: Replace two loops with std::replace.
2015-02-18 23:45:19 +01:00
Stephen Kelly
470cff497b
cmMakefile: Replace loop with composed algorithm.
2015-02-18 23:45:18 +01:00
Stephen Kelly
8910224950
Replace common loop pattern with cmJoin
2015-02-11 22:57:55 +01:00
Stephen Kelly
7ee56f0399
Convert loops into the commonly used pattern.
2015-02-11 22:57:41 +01:00
Brad King
cbffbf7437
Merge topic 'cmStandardIncludes-cleanup'
...
af65da0a
cmStandardIncludes: Remove list include.
e848cc50
cmStandardIncludes: Remove deque include.
5fea6898
cmStandardIncludes: Remove some VS6 workarounds.
2015-02-10 12:56:08 -05:00
Stephen Kelly
af65da0aa9
cmStandardIncludes: Remove list include.
...
Include it only where used.
2015-02-06 19:04:53 +01:00
Stephen Kelly
3f3db74413
cmMakefile: Remove ExpandSourceListArguments.
2015-02-05 20:44:25 +01:00
Brad King
3228fc5049
Features: Define meaning for no language standard default
...
Define an empty string in CMAKE_<LANG>_STANDARD_DEFAULT to mean that
the toolchain has no notion of lanuage standard levels. In this case
the <LANG>_STANDARD[_REQUIRED] properties will have no effect.
Update the RunCMake.CompileFeatures test to exclude the
LinkImplementationFeatureCycle test when there is no standard default.
It can never fail because no use of specific features will adjust the
CXX_STANDARD level required for any target since the standard levels
have no meaning in this case.
2015-01-29 15:01:40 -05:00
Stephen Kelly
fd7b371293
Replace foo.size() pattern with !foo.empty().
2015-01-18 14:25:24 +01:00
Stephen Kelly
930bd47816
Replace 'foo.size() == 0' pattern with foo.empty().
2015-01-18 14:25:24 +01:00
Stephen Kelly
d92887efab
Replace 'foo.size() > 0' pattern with !foo.empty().
2015-01-18 14:25:24 +01:00
Brad King
4ecc392b42
Merge topic 'delete-algorithm'
...
65b81da4
cmVariableWatch: Use the cmDeleteAll algorithm with for_each.
30d2de9a
cmGeneratorExpressionEvaluator: Replace own algorithm with cmDeleteAll.
4a6e795b
Use the cmDeleteAll algorithm instead of trivial raw loops.
abb4a678
Add a generic algorithm for deleting items in a container.
2015-01-15 09:54:04 -05:00
Brad King
6418eef222
Merge topic 'fix-COMPILE_FEATURES-genex'
...
45ec182d
Features: Fix the COMPILE_FEATURES genex for unavailable features.
2bead0eb
cmMakefile: Rename a method to what it really does.
2015-01-15 09:54:02 -05:00
Stephen Kelly
4a6e795b0c
Use the cmDeleteAll algorithm instead of trivial raw loops.
2015-01-13 23:00:17 +01:00
Stephen Kelly
2bead0eb1b
cmMakefile: Rename a method to what it really does.
...
The method does not test availability of compile features.
2015-01-12 10:30:43 -05:00
Brad King
dd6c596c12
Merge topic 'join-algorithm'
...
55a73e6b
Use the cmJoin algorithm where possible.
8dc8d756
cmStandardIncludes: Add a join algorithm for string containers.
b5813cee
cmInstallCommand: Remove unused variable.
2015-01-12 09:41:02 -05:00
Brad King
b5a467262b
Merge topic 'drop-ancient-workarounds'
...
0f7bdd61
Remove VS 6 special case.
5e92c826
Remove some obsolete stuff.
15e42bb2
cmStandardIncludes: Remove obsolete cmOStringStream.
931e055d
Port all cmOStringStream to std::ostringstream.
f194a009
Remove unused cmIStringStream class.
3ec1bb15
cmStandardIncludes: Remove std namespace hack.
bb3bce70
cmStandardIncludes: Remove ANSI_FOR_SCOPE hack.
28fa4923
cmStandardIncludes: Remove iostreams workaround for obsolete Compaq compiler.
837a8a63
cmStandardIncludes: Drop Comeau-related workaround.
4030ddfd
Remove Borland-related undef.
17d6a6fd
cmStandardIncludes: Remove comment about Borland.
26fb5011
Drop SGI as a CMake host compiler.
2015-01-12 08:57:39 -05:00
Stephen Kelly
931e055d8c
Port all cmOStringStream to std::ostringstream.
...
All compilers hosting CMake support the std class.
2015-01-11 17:06:03 +01:00
Stephen Kelly
6162c9194b
Use two-iterator std::set::insert where appropriate.
2015-01-11 17:00:55 +01:00
Stephen Kelly
238dd2fbab
Use insert instead of a loop in some cases.
...
Limit this change to inserting into a vector from a vector.
A follow up change can use insert for inserting into a set.
2015-01-11 17:00:55 +01:00
Stephen Kelly
55a73e6b1f
Use the cmJoin algorithm where possible.
2015-01-08 22:28:18 +01:00
Brad King
c7bd275393
Merge topic 'cached-regex-clear-fixed'
...
ceecd790
cmMakefile: store the number of last matches in a CMake var
7878d061
test: add a test for clearing regex results
2014-12-04 10:23:26 -05:00
Ben Boeckel
ceecd7902f
cmMakefile: store the number of last matches in a CMake var
...
With PushScope and PopScope, keeping track of another bit of data for
each scope isn't easy. Instead, store it as another CMake variable so it
gets implicitly tracked along with everything else.
This works in a revert of commit
7d674b5f0b
.
2014-12-03 11:06:44 -05:00
Ruslan Baratov
e6db4c5a4e
file: Add LOCK subcommand to do file and directory locking
...
Provide options to fail without blocking or to block up to a timeout.
Provide options to specify the scope containing the lock so it can be
released automatically at the end of a function, file, or process.
Extend the RunCMake.file test with cases covering the file(LOCK) command
usage and error cases.
2014-12-03 09:47:44 -05:00