summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'introduce-cmState'Brad King2015-04-131-61/+64
|\ | | | | | | | | | | | | | | f081c5bd cmState: Move CacheEntryType enum from cmCacheManager. f71fdf0e cmMakefile: Remove unused CacheManager accessor. ff7169a0 Port to cmState. a6b1ad13 Introduce cmState class.
| * cmState: Move CacheEntryType enum from cmCacheManager.Stephen Kelly2015-04-131-20/+20
| |
| * Port to cmState.Stephen Kelly2015-04-131-42/+41
| |
| * Introduce cmState class.Stephen Kelly2015-04-131-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | At this point, it is an interface to the cache. It will be extended to be a universal interface for access to and manipulation of configuration-time data (defintions, properties on targets, directories, source files etc). This will allow porting all command implementations away from the cmMakefile and cmTarget classes, and result in something more-purely related to configuration-time processing of cmake commands. That should serve at least the following goals: * Split the CMake implementation more definitively into three stages: Configuration, computation and generation, and be able to implement each optimally for memory access patterns etc. * Make better IDE integration possible by making more configuration data available. * Make it possiblte to use a smaller library than CMakeLib.a in cpack and ctest, resulting in smaller executables. * Make it possible to run the configure step multiple times in the same CMake run (#14539). Manage its lifetime in the cmake class, and add a convenience accessor to cmMakefile.
* | Merge topic 'cmake-cleanups'Brad King2015-04-131-60/+77
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 07d44d63 cmake: Remove confusing duplication. ea819b29 cmMakefile: Remove unused method. 6ad86c7f cmMakefile: Remove bad comment. fca2b542 cmMakefile: Internalize setting of CMakeInstance on Properties. 7bb4e3db cmMakefile: Out-of-line Home directory accessors. 6241253a cmake: Out-of-line Home and Start directory methods. 0ee3ccb3 cmake: Fix variable name bugs. 57dd094e Use vector, not list for cmCommand storage. 6deb43e6 Remove some files which do not need to be in BootstrapCommands. ecdb1b3b Add some missing includes. 04b307b9 cmake: Simplify CommandExists method. 0f1f324b cmake: Rename oddly named variables. 275185ac cmake: Constify GetCommand method. c57f086a cmake: Don't lower-case a string needlessly. 23368c9b cmake: Use make_pair instead of Foo::value_type. 14c70b8c cmake: out-of-line try compile state methods. ...
| * | cmake: Remove confusing duplication.Stephen Kelly2015-04-121-4/+0
| | |
| * | cmake: Out-of-line Home and Start directory methods.Stephen Kelly2015-04-121-0/+32
| | |
| * | cmake: Fix variable name bugs.Stephen Kelly2015-04-121-2/+2
| | |
| * | Use vector, not list for cmCommand storage.Stephen Kelly2015-04-121-2/+2
| | |
| * | cmake: Simplify CommandExists method.Stephen Kelly2015-04-121-2/+1
| | |
| * | cmake: Rename oddly named variables.Stephen Kelly2015-04-121-6/+6
| | |
| * | cmake: Constify GetCommand method.Stephen Kelly2015-04-121-2/+2
| | |
| * | cmake: Don't lower-case a string needlessly.Stephen Kelly2015-04-121-1/+1
| | |
| * | cmake: Use make_pair instead of Foo::value_type.Stephen Kelly2015-04-121-2/+2
| | | | | | | | | | | | It works with all supported compilers.
| * | cmake: out-of-line try compile state methods.Stephen Kelly2015-04-121-0/+10
| | |
| * | cmake: Remove duplicate condition.Stephen Kelly2015-04-121-4/+0
| | |
| * | cmake: Remove DebugConfigs member.Stephen Kelly2015-04-121-30/+15
| | | | | | | | | | | | It adds needless complexity to global property handling.
| * | cmake: Remove method with no external users.Stephen Kelly2015-04-121-5/+5
| | | | | | | | | | | | Port internal users to access the member.
| * | cmake: Don't set the CMakeInstance on the Properties member.Stephen Kelly2015-04-121-1/+0
| | | | | | | | | | | | | | | There is no need, as global properties have nowhere to chain up to.
* | | cmake: Provide guidance when an invalid -G option is givenGerald Combs2015-04-101-0/+16
|/ / | | | | | | | | | | | | Print a list of generators if no generator or an invalid one is supplied. Signed-off-by: Gerald Combs <gerald@wireshark.org>
* | Merge topic 'refactor-cache-api'Brad King2015-04-091-65/+101
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | ba404938 cmCacheManager: Port consumers to non-iterator API. f3922a9a Port QtDialog to non-iterator cache API. 3e6a76e4 Port CursesDialog to non-iterator cache API. 9e641567 cmMakefile: Port away from CacheEntry.Initialized. 1e2dbfce cmCacheManager: Add non-iterator-based API. 60a62a91 cmCacheManager: Return a C string from GetValue. 77f2807c cmCacheManager: Rename GetCacheValue to GetInitializedCacheValue. 14973054 Add API for cache loading, deleting and saving to the cmake class. 1f2c12eb cmMakefile: Remove cache version accessors. 97c50a8d cmMakefile: Simplify GetDefinitions implementation.
| * cmCacheManager: Port consumers to non-iterator API.Stephen Kelly2015-04-081-42/+42
| | | | | | | | | | This simplifies reasoning about the follow-up commit which ports away from cmCacheManager to a class with the same method names.
| * cmCacheManager: Rename GetCacheValue to GetInitializedCacheValue.Stephen Kelly2015-04-071-20/+27
| | | | | | | | | | Being initialized is a requirement for this method to return something, and is what differentiates it from using GetIterator with it.GetValue.
| * Add API for cache loading, deleting and saving to the cmake class.Stephen Kelly2015-04-071-5/+34
| | | | | | | | | | Migrate existing users of the CacheManager API to use the new API. The CacheManager will be going away soon.
| * Revert topic 'refactor-cache-api'Brad King2015-04-071-101/+65
| | | | | | | | | | | | 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.
| * cmCacheManager: Port consumers to non-iterator API.Stephen Kelly2015-04-061-42/+42
| | | | | | | | | | This simplifies reasoning about the follow-up commit which ports away from cmCacheManager to a class with the same method names.
| * cmCacheManager: Rename GetCacheValue to GetInitializedCacheValue.Stephen Kelly2015-04-061-20/+27
| | | | | | | | | | Being initialized is a requirement for this method to return something, and is what differentiates it from using GetIterator with it.GetValue.
| * Add API for cache loading, deleting and saving to the cmake class.Stephen Kelly2015-04-061-5/+34
| | | | | | | | | | Migrate existing users of the CacheManager API to use the new API. The CacheManager will be going away soon.
* | cmake: Show in --help how to select VS target platform (#15422)Brad King2015-04-071-8/+8
|/ | | | | | | | | * Re-order VS generators from newest to oldest. * Show how to specify a VS generator with a target platform * Increase the option output indentation to avoid extra wrapping with longer generator names.
* cmake: Clear member rather than explicit erase.Stephen Kelly2015-04-051-1/+1
|
* cmake: Be clear that there is no chaining after global properties.Stephen Kelly2015-04-051-3/+2
|
* cmake: Remove unused member.Stephen Kelly2015-04-051-1/+0
|
* Qbs: Add new 'extra' generator for qbs project filesStanislav Ionascu2015-03-201-0/+4
|
* Include cmAlgorithms where it is used.Stephen Kelly2015-03-101-0/+1
|
* cmake: Teach --build to honor CMAKE_VERBOSE_MAKEFILE for NinjaGregor Jasny2015-02-261-1/+6
| | | | | | | | | The Ninja build system does not support a in-file verbositiy switch. Instead teach 'cmake --build' to extract the CMAKE_VERBOSE_MAKEFILE setting and pass it as an optional '-v' argument to Ninja. This can serve as a reasonable fallback. Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
* Merge topic 'cmStandardIncludes-cleanup'Brad King2015-02-101-0/+2
|\ | | | | | | | | | | | | af65da0a cmStandardIncludes: Remove list include. e848cc50 cmStandardIncludes: Remove deque include. 5fea6898 cmStandardIncludes: Remove some VS6 workarounds.
| * cmStandardIncludes: Remove list include.Stephen Kelly2015-02-061-0/+2
| | | | | | | | Include it only where used.
* | Replace a loop with std::transform.Stephen Kelly2015-02-061-5/+4
|/
* cmake: Display "loading initial cache" message on stdoutJean-Christophe Fillion-Robin2015-01-261-1/+1
| | | | | | This message has been on stderr since the "-C" option was first added, but it is informational and not an error. Other informational messages go to stdout, so send this one there too.
* Replace 'foo.length() >= 1' pattern with !foo.empty()Stephen Kelly2015-01-181-1/+1
|
* Replace 'foo.length() > 0' pattern with !foo.empty().Stephen Kelly2015-01-181-2/+2
|
* Replace foo.size() pattern with !foo.empty().Stephen Kelly2015-01-181-3/+3
|
* Replace 'foo.size() == 0' pattern with foo.empty().Stephen Kelly2015-01-181-10/+10
|
* Replace 'foo.size() > 0' pattern with !foo.empty().Stephen Kelly2015-01-181-2/+2
|
* Use the cmDeleteAll algorithm instead of trivial raw loops.Stephen Kelly2015-01-131-10/+2
|
* Merge topic 'join-algorithm'Brad King2015-01-121-8/+1
|\ | | | | | | | | | | | | 55a73e6b Use the cmJoin algorithm where possible. 8dc8d756 cmStandardIncludes: Add a join algorithm for string containers. b5813cee cmInstallCommand: Remove unused variable.
| * Use the cmJoin algorithm where possible.Stephen Kelly2015-01-081-8/+1
| |
* | Port all cmOStringStream to std::ostringstream.Stephen Kelly2015-01-111-13/+13
|/ | | | All compilers hosting CMake support the std class.
* Remove some unneeded c_str calls.Stephen Kelly2014-11-231-2/+2
|
* Merge topic 'vs14-is-2015'Brad King2014-11-171-1/+1
|\ | | | | | | | | f5afb90d VS: Rename VS 14 generator to 'Visual Studio 14 2015'