summaryrefslogtreecommitdiffstats
path: root/Source
Commit message (Collapse)AuthorAgeFilesLines
* cmMakefile: Let AddDefinition accept a value as cm::string_viewSebastian Holtermann2019-07-2456-256/+226
| | | | | | | | | | | | | | | | This changes `cmMakefile::AddDefinition` to take a `cm::string_view` as value argument instead of a `const char *`. Benefits are: - `std::string` can be passed to `cmMakefile::AddDefinition` directly without the `c_str()` plus string length recomputation fallback. - Lengths of literals passed to `cmMakefile::AddDefinition` can be computed at compile time. In various sources uses of `cmMakefile::AddDefinition` are adapted to avoid `std::string::c_str` calls and the `std::string` is passed directly. Uses of `cmMakefile::AddDefinition`, where a `nullptr` `const char*` might be passed to `cmMakefile::AddDefinition` are extended with `nullptr` checks.
* cmMakefile: Simplify and rename AddDefinitionBoolSebastian Holtermann2019-07-246-26/+13
| | | | | | | This simplifies the `cmMakefile::AddDefinition` method with bool value overload to call the string based `cmMakefile::AddDefinition` method with either an "ON" or "OFF" string. Also the method is renamed to `cmMakefile::AddDefinitionBool`
* cmDefinitions: Remove const char* based Set methodSebastian Holtermann2019-07-244-17/+13
| | | | | | | - Removes `cmDefinitions::Set` method overload that takes a `const char*` value argument. - Updates calls to `cmDefinitions::Set` to use the `cm::string_view` based version instead.
* cmDefinitions: Add Unset and cm::string_view based Set methodsSebastian Holtermann2019-07-242-17/+30
| | | | | | | | | | | | | | | | | | - The `cmDefinitions::Def` struct is simplified by removing an unused constructor and the `std_string` type definition. The std::string value becomes a member variable instead of being derived from. - The `cmDefinitions::Unset` method is added that unsets a definition. It has the same functionality as calling `cmDefinitions::Set` with a `nullptr` value argument, - The `cmDefinitions::Set` method gets an overloaded version that takes a `cm::string_view` as value argument. - The originl `cmDefinitions::Set` method with `const char*` argument is refactored to either call the `cm::string_view` based `cmDefinitions::Set` overload or `cmDefinitions::Unset`, depending on whether the value `const char*` is a nullptr (`Unset`) or not (`Set`).
* cmDefinitions: CleanupsSebastian Holtermann2019-07-241-8/+9
|
* CMake Nightly Date StampKitware Robot2019-07-241-1/+1
|
* Merge topic 'parsers-bison-3.3'Brad King2019-07-238-1225/+1273
|\ | | | | | | | | | | | | 8f0b3f92d5 LexerParser: Regenerate parsers with bison 3.3 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3588
| * LexerParser: Regenerate parsers with bison 3.3Brad King2019-07-228-1225/+1273
| | | | | | | | Run `Utilities/Scripts/regenerate-parsers.bash`.
* | Merge topic 'cmHasLiteralPrefix_cm_string_view'Brad King2019-07-231-9/+28
|\ \ | | | | | | | | | | | | | | | | | | | | | 301f5356fd cmAlgorithms: Make cmHasPrefix and cmHasSuffix cm::string_view based Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Daniel Pfeifer <daniel@pfeifer-mail.de> Merge-request: !3583
| * | cmAlgorithms: Make cmHasPrefix and cmHasSuffix cm::string_view basedSebastian Holtermann2019-07-221-9/+28
| |/ | | | | | | | | | | | | | | | | Make `cmHasPrefix`, `cmHasSuffix` and `cmStripSuffixIfExists` accept arguments as `cm::string_view` instead of `const std::string&`. This lets them accept literal strings without having to allocate a temporary `std::string`. Add variants of `cmHasPrefix`, `cmHasSuffix` and `cmStripSuffixIfExists` that accept a single character as second argument.
* | Merge topic 'make-imported-targets-more-equal'Brad King2019-07-231-3/+4
|\ \ | | | | | | | | | | | | | | | | | | | | | 680a3c63bb target_*: Allow setting INTERFACE properties of UNKNOWN IMPORTED targets 62b5d1e4ad cmTargetPropCommandBase: Order target type condition by order in enum Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3581
| * | target_*: Allow setting INTERFACE properties of UNKNOWN IMPORTED targetsAvraham Shukron2019-07-221-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | Extend the change made by commit fe4b25ec2f (Teach target_* commands to set INTERFACE properties of IMPORTED targets, 2017-09-18, v3.11.0-rc1~433^2~2) to work with imported targets of type `UNKNOWN`. Fixes: #19434
| * | cmTargetPropCommandBase: Order target type condition by order in enumAvraham Shukron2019-07-221-4/+4
| | | | | | | | | | | | This improves readability.
* | | Merge topic 'command-refactoring3'Brad King2019-07-2328-382/+244
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dfaa87f1b3 cmState: Support BuiltinCommands as free functions 28f2d12a05 cmCommand: De-virtualize function InvokeInitialPass de77d355ac cmState: Add scripted commands by value 0101ace131 cmUnexpectedCommand: Replace with lambda expression 015001aaf1 cmState: Hold commands by value 1eebc29563 cmCommand: deprecate functions GetMakefile and SetError Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3574
| * | | cmState: Support BuiltinCommands as free functionsRegina Pfeifer2019-07-227-62/+34
| | | |
| * | | cmCommand: De-virtualize function InvokeInitialPassRegina Pfeifer2019-07-216-86/+24
| | | |
| * | | cmState: Add scripted commands by valueRegina Pfeifer2019-07-215-89/+50
| | | |
| * | | cmUnexpectedCommand: Replace with lambda expressionRegina Pfeifer2019-07-215-69/+22
| | | |
| * | | cmState: Hold commands by valueRegina Pfeifer2019-07-216-39/+69
| | | |
| * | | cmCommand: deprecate functions GetMakefile and SetErrorDaniel Pfeifer2019-07-2114-45/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace the members for the Makefile and the Error with a cmExecutionStatus. Re-implement GetMakefile and SetError based on that. Both functions should be called directly on the cmExecutionStatus that is passed to InitialPass. This will help us make all Commands immutable and remove the need for cloning.
* | | | CMake Nightly Date StampKitware Robot2019-07-231-1/+1
| |_|/ |/| |
* | | Merge topic 'refactor-processhandler'Brad King2019-07-222-137/+181
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | ae2cfc4bd8 Refactor: Break cmCTestTestHandler::ProcessHandler() into smaller functions Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3580
| * | | Refactor: Break cmCTestTestHandler::ProcessHandler() into smaller functionsKyle Edwards2019-07-192-137/+181
| | | |
* | | | Merge topic 'static-library-flags'Brad King2019-07-221-5/+7
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 59f2aa63e4 Swift: fix static library handling Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3576
| * | | | Swift: fix static library handlingSaleem Abdulrasool2019-07-191-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Handle static libraries similar to shared libraries. Do not pass along the shared library flags raw as that will pass flags for the linker to the driver which is incorrect.
* | | | | Merge topic 'refactor-usage-requirements'Brad King2019-07-223-294/+245
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2682714a3f cmGeneratorTarget: Refactor usage requirement genex evaluation 3cbc15773f cmGeneratorTarget: Move static functions to anonymous namespace 33494a507d cmGeneratorTarget: Order usage requirement processing logic consistently c131e62f7b cmGeneratorTarget: Remove unnecessary copy to local variable fab72918c9 cmGeneratorTarget: Remove unused member of internal class 95d3598e04 cmGeneratorExpressionDAGChecker: Avoid const_cast Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Marc Chevrier <marc.chevrier@gmail.com> Merge-request: !3578
| * | | | | cmGeneratorTarget: Refactor usage requirement genex evaluationBrad King2019-07-191-270/+209
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Evaluate usage requirement generator expressions fully before entering the processing loops. This allows us to evaluate and collect all entries up front and then have only one call to the loop over them. This also allows `AddInterfaceEntries` to immediately evaluate the generator expressions it synthesizes, which will enable later optimization.
| * | | | | cmGeneratorTarget: Move static functions to anonymous namespaceBrad King2019-07-191-26/+43
| | | | | |
| * | | | | cmGeneratorTarget: Order usage requirement processing logic consistentlyBrad King2019-07-191-10/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Re-order logic in all `process*` methods so that they all evaluate generator expressions at the beginning of their loops.
| * | | | | cmGeneratorTarget: Remove unnecessary copy to local variableBrad King2019-07-191-4/+3
| | | | | |
| * | | | | cmGeneratorTarget: Remove unused member of internal classBrad King2019-07-191-3/+0
| | | | | |
| * | | | | cmGeneratorExpressionDAGChecker: Avoid const_castBrad King2019-07-192-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | Make a member mutable to avoid casting away const of a whole object.
* | | | | | Merge topic 'cpack-install-scripts'Craig Scott2019-07-221-2/+14
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5f96601675 CPack: Introduce CPACK_INSTALL_SCRIPTS variable Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3531
| * | | | | | CPack: Introduce CPACK_INSTALL_SCRIPTS variableAlex Turbov2019-07-211-2/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The singular name `CPACK_INSTALL_SCRIPT` has existed but was not linked from the CPack documentation. Also, it supported multiple values and should have had a plural name. Add a plural-named alternative now. If both `CPACK_INSTALL_SCRIPTS` and `CPACK_INSTALL_SCRIPT` are set then ignore the latter with a warning. Signed-off-by: Alex Turbov <i.zaufi@gmail.com>
* | | | | | | Merge topic 'feature/message-indent'Craig Scott2019-07-221-14/+38
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5f6fd917a3 message(): Control indentation via CMAKE_MESSAGE_INDENT Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3464
| * | | | | | | message(): Control indentation via CMAKE_MESSAGE_INDENTAlex Turbov2019-07-211-14/+38
| | | | | | | |
* | | | | | | | CMake Nightly Date StampKitware Robot2019-07-221-1/+1
| |_|_|_|_|/ / |/| | | | | |
* | | | | | | CMake Nightly Date StampKitware Robot2019-07-211-1/+1
| |_|_|_|_|/ |/| | | | |
* | | | | | CMake Nightly Date StampKitware Robot2019-07-201-1/+1
| |_|_|_|/ |/| | | |
* | | | | Merge topic 'skip_regular_expression'Kyle Edwards2019-07-194-5/+38
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5dbd9c8583 Vim: Add SKIP_REGULAR_EXPRESSION test property to vim syntax file 407dd1a910 Help: Add documentation for SKIP_REGULAR_EXPRESSION test property d7955d4e5d Tests: Create test for SKIP_REGULAR_EXPRESSION test property 4f1dec86a5 CTest: Add SKIP_REGULAR_EXPRESSION test property Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3570
| * | | | | CTest: Add SKIP_REGULAR_EXPRESSION test propertyGabor Bencze2019-07-184-5/+38
| | | | | |
* | | | | | Merge topic 'command-final-action'Brad King2019-07-1915-316/+262
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 732dd344b9 cmCommand: remove FinalPass from interface fbee46e262 cmVariableWatchCommand: Port away from FinalPass 360d415592 cmLoadCommandCommand: Port away from FinalPass 316e40baec cmInstallProgramsCommand: Port away from FinalPass 7bc88b9165 cmInstallFilesCommand: Port away from FinalPass 6a1a3763ee cmFLTKWrapUICommand: Port away from FinalPass 20169f0b8d cmExportLibraryDependenciesCommand: Port away from FinalPass a74dad3bd3 cmMakefile: decouple FinalAction from cmCommand ... Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3562
| * | | | | | cmCommand: remove FinalPass from interfaceDaniel Pfeifer2019-07-183-34/+0
| | | | | | |
| * | | | | | cmVariableWatchCommand: Port away from FinalPassDaniel Pfeifer2019-07-182-22/+33
| | | | | | |
| * | | | | | cmLoadCommandCommand: Port away from FinalPassDaniel Pfeifer2019-07-181-19/+5
| | | | | | |
| * | | | | | cmInstallProgramsCommand: Port away from FinalPassDaniel Pfeifer2019-07-182-40/+29
| | | | | | |
| * | | | | | cmInstallFilesCommand: Port away from FinalPassDaniel Pfeifer2019-07-182-52/+38
| | | | | | |
| * | | | | | cmFLTKWrapUICommand: Port away from FinalPassDaniel Pfeifer2019-07-182-47/+28
| | | | | | |
| * | | | | | cmExportLibraryDependenciesCommand: Port away from FinalPassDaniel Pfeifer2019-07-182-41/+24
| | | | | | |
| * | | | | | cmMakefile: decouple FinalAction from cmCommandDaniel Pfeifer2019-07-182-6/+32
| | | | | | |