summaryrefslogtreecommitdiffstats
path: root/Source
Commit message (Collapse)AuthorAgeFilesLines
* Xcode: Add option to specify build system variantBrad King2020-09-182-12/+114
| | | | | | Extend the `-T <toolset>` option to support a `buildsystem=` field with the Xcode generator. Add a `CMAKE_XCODE_BUILD_SYSTEM` variable to inform project code about the selected build system variant.
* Xcode: Factor out build phase variable declarationsBrad King2020-09-181-7/+12
|
* Xcode: Clarify name of legacy run script build phase helperBrad King2020-09-182-8/+8
|
* ExternalProject: Add policy CMP0114 to refine step target dependenciesBrad King2020-09-141-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | `ExternalProject_Add_StepTargets` and `INDEPENDENT_STEP_TARGETS` have some limitations and lack some sanity checks. They can cause confusing build systems to be generated. The basic problems are: * The notion of step independence is attached to the step target rather than the step itself. * The custom commands implementing the steps are duplicated in the step targets and the primary targets. This can cause races. It is also incompatible with the Xcode "new build system". Fix this by introducing policy CMP0114 to change the way step target dependencies are handled. Define independence from external dependencies as a property of each individual step regardless of whether there is a target for it. Add dependencies among the primary target and the step targets such that each custom command only appears in one target. When some steps are disconnected from the primary target, add step targets for the steps commonly depended upon so that there is a place to hold their custom commands uniquely. Fixes: #18663
* Merge topic 'pch-instantiate-templates'Brad King2020-09-102-0/+11
|\ | | | | | | | | | | | | | | | | | | 8c8f03422e PCH: Template instantiation support Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Raul Tambre <raul@tambre.ee> Acked-by: Cristian Adam <cristian.adam@gmail.com> Tested-by: Raul Tambre <raul@tambre.ee> Merge-request: !5168
| * PCH: Template instantiation supportTobias Hieta2020-09-022-0/+11
| | | | | | | | | | | | | | | | Adds PCH_INSTANTIATE_TEMPLATES target property for enabling template instantiation in precompiled headers. Enabled by default. Currently only supported for Clang 11 and newer. Implements #21133.
* | Merge topic 'custom-command-dedup'Brad King2020-09-105-11/+69
|\ \ | | | | | | | | | | | | | | | | | | | | | 45fedf0e17 Makefile: Add policy CMP0113 to avoid duplication of custom commands 844779bdc1 cmMakefileTargetGenerator: Simplify custom command output collection Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5204
| * | Makefile: Add policy CMP0113 to avoid duplication of custom commandsBrad King2020-09-085-1/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Do not attach a custom command to a target if it is already attached to one of the target's dependencies. The command's output will be available by the time the target needs it because the dependency containing the command will have already been built. This may break existing projects that do not properly mark non-created outputs with the `SYMBOLIC` property. Previously a chain of two custom commands whose intermediate dependency is not created would put both commands in a dependent project's Makefile even if the first command is also in its dependency's Makefile. The first command would run twice but the build would work. Now the second command needs an explicit `SYMBOLIC` mark on its input to tell CMake that it is not expected to exist. To maintain compatibility with projects that left out the mark, add a policy activating the behavior.
| * | cmMakefileTargetGenerator: Simplify custom command output collectionBrad King2020-09-082-10/+6
| | |
* | | Merge topic 'json-helpers'Brad King2020-09-104-91/+437
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | b2f3f831e2 Refactor: Use JSON helpers in CTest resource spec 3f3a30e1e0 JSON: Add helpers Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5197
| * | | Refactor: Use JSON helpers in CTest resource specKyle Edwards2020-09-092-91/+132
| | | |
| * | | JSON: Add helpersKyle Edwards2020-09-092-0/+305
| | | |
* | | | Merge topic 'optimize-old-expand'Brad King2020-09-105-46/+34
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 62d7acc6d4 cmCommandArgumentParserHelper: rework input handling Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5208
| * | | | cmCommandArgumentParserHelper: rework input handlingOleksandr Koval2020-09-095-46/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Old implementation uses involved Flex input management technique that requires usage of obsolete YY_INPUT macro. This causes a lot of useless allocations and byte-by-byte scanning. New implementation avoids those hacks, it uses yy_scan_string() API to setup Flex input. Also it fixes reporting of syntax error position and corresponding tests.
* | | | | Merge topic 'automoc-rerun-missing-dependency'Brad King2020-09-101-7/+15
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 9ac3503d30 AutoMoc: Re-run moc if a dependency is missing Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5180
| * | | | | AutoMoc: Re-run moc if a dependency is missingJoerg Bornemann2020-09-091-7/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | AutoMoc uses the moc-emitted dependency file of Qt 5.15 to track dependencies. Such a dependency may well live outside the project and can vanish, for example when installing a new compiler version. This situation was detected before, but merely a warning was issued. Now, we're considering a generated file as out of date if a dependency is missing and re-generate it. We also have to remove the missing dependency from the ParseCache. Otherwise the AUTOMOC target for all generators other than Ninja will always be out of date. The ParseCacheChanged flag had to be made atomic, because we're potentially accessing it from multiple threads. The dependencies vector itself is not vulnerable in this regard, because there's one vector per file, and we're accessing exactly one ParseCacheT::FileHandleT per thread. Fixes: #21136
* | | | | | CMake Nightly Date StampKitware Robot2020-09-101-1/+1
| | | | | |
* | | | | | Merge topic 'vs9-custom-command-dedup'Brad King2020-09-094-17/+24
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 066f4d0f0a VS: Avoid unnecessary duplication of custom commands across targets in VS 9 8bb5c96bf8 cmLocalVisualStudio7Generator: Adopt SourcesVisited lookup table Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5206
| * | | | | | VS: Avoid unnecessary duplication of custom commands across targets in VS 9Brad King2020-09-081-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Do not attach a custom command to a target if it is already attached to one of the target's dependencies. The command's output will be available by the time the target needs it because the dependency containing the command will have already been built. The same change was already made by commit f59c33a763 (VS: Generate a custom command only in the least dependent target, 2018-03-23, v3.12.0-rc1~171^2) for VS 10+.
| * | | | | | cmLocalVisualStudio7Generator: Adopt SourcesVisited lookup tableBrad King2020-09-084-16/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move it up the hierarchy from `cmLocalVisualStudio10Generator`. Propagate contents from a target's dependencies as part of the main target iteration logic instead of as part of the generator-specific target generation.
* | | | | | | Merge topic 'use-cmprop'Brad King2020-09-094-45/+40
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dae5fe8b8f cmConditionEvaluator: More use of cmProp Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5190
| * | | | | | | cmConditionEvaluator: More use of cmPropvvs314152020-09-084-45/+40
| | |_|_|_|/ / | |/| | | | |
* | | | | | | Merge topic 'file-real_path'Brad King2020-09-091-0/+46
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | be36266dab file(): Add REAL_PATH sub-command Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5202
| * | | | | | | file(): Add REAL_PATH sub-commandMarc Chevrier2020-09-081-0/+46
| |/ / / / / /
* | | | | | | Merge topic 'fix-crash-21165'Brad King2020-09-091-22/+12
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a46fdda464 cmGeneratorTarget: Avoid missing nullptr check Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5191
| * | | | | | | cmGeneratorTarget: Avoid missing nullptr checkvvs314152020-09-081-22/+12
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Revise logic in `ComputeOutputDir` that was previously missing a check for nullptr before constructing a `std::string`. Fixes: #21165
* | | | | | | Merge topic 'pch-tv90'Brad King2020-09-091-8/+20
|\ \ \ \ \ \ \ | |_|_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ce7c100545 PCH: Fix 30s wait for VS2008 when used via -Tv90 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5199
| * | | | | | PCH: Fix 30s wait for VS2008 when used via -Tv90Cristian Adam2020-09-071-8/+20
| | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | Fixes: #21142 Backport: release
* | | | | | Merge topic 'cmstrlen'Kyle Edwards2020-09-091-0/+7
|\ \ \ \ \ \ | |_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0c9cdf30ed cmStringAlgorithms: Add cmStrLen() Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5201
| * | | | | cmStringAlgorithms: Add cmStrLen()Kyle Edwards2020-09-081-0/+7
| | | | | |
* | | | | | CMake Nightly Date StampKitware Robot2020-09-091-1/+1
| |_|/ / / |/| | | |
* | | | | Merge topic 'generate-target-order'Brad King2020-09-0812-156/+90
|\ \ \ \ \ | | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | aea465793e cmLocalVisualStudio7Generator: Consolidate target iteration 1527242745 cmLocalVisualStudio10Generator: Simplify target ordering by dependencies 48bf7192e7 cmLocalVisualStudio7Generator: Generate targets in dependency order 17aba9c9a6 cmLocalUnixMakefileGenerator3: Generate targets in dependency order 69ee18163b cmLocalGhsMultiGenerator: Generate targets in dependency order c4e296a609 cmGlobalGenerator: Compute a global target ordering respecting dependencies Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5187
| * | | | cmLocalVisualStudio7Generator: Consolidate target iterationBrad King2020-09-045-57/+14
| | | | | | | | | | | | | | | | | | | | | | | | | Combine iteration with `cmLocalVisualStudio10Generator` and dispatch generation of each target with a virtual `GenerateTarget` method.
| * | | | cmLocalVisualStudio10Generator: Simplify target ordering by dependenciesBrad King2020-09-042-26/+12
| | | | | | | | | | | | | | | | | | | | | | | | | Replace our own depth-first traversal with use of the global generator's computed target order that respects dependencies.
| * | | | cmLocalVisualStudio7Generator: Generate targets in dependency orderBrad King2020-09-041-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | Use the globally computed target ordering so that we generate all of a target's dependencies before generating the target itself.
| * | | | cmLocalUnixMakefileGenerator3: Generate targets in dependency orderBrad King2020-09-041-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | Use the globally computed target ordering so that we generate all of a target's dependencies before generating the target itself.
| * | | | cmLocalGhsMultiGenerator: Generate targets in dependency orderBrad King2020-09-042-33/+8
| | | | | | | | | | | | | | | | | | | | | | | | | Use the globally computed target ordering so that we generate all of a target's dependencies before generating the target itself.
| * | | | cmGlobalGenerator: Compute a global target ordering respecting dependenciesBrad King2020-09-044-42/+56
| | | | | | | | | | | | | | | | | | | | | | | | | Move this up from `cmGlobalXCodeGenerator`. It will be useful for all generators.
* | | | | Merge topic 'ispc_improvements'Brad King2020-09-0810-7/+176
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a020787a9b ISPC: Support generation for multiple instruction sets 5a1750017e ISPC: Add compiler launcher support Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5173
| * | | | | ISPC: Support generation for multiple instruction setsRobert Maynard2020-09-0410-5/+173
| | | | | |
| * | | | | ISPC: Add compiler launcher supportRobert Maynard2020-09-033-2/+3
| | | | | |
* | | | | | Merge topic 'GetExecutionListFile-by-ref'Brad King2020-09-084-6/+6
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 879bd7fd9c cmStateSnapshot: Return const reference from GetExecutionListFile() Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5186
| * | | | | | cmStateSnapshot: Return const reference from GetExecutionListFile()Oleksandr Koval2020-09-034-6/+6
| |/ / / / /
* | | | | | Merge topic 'optimize-cmJoin'Brad King2020-09-083-4/+69
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 38928ee3ee cmStringAlgorithms: Add faster cmJoin overloads for strings Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5185
| * | | | | | cmStringAlgorithms: Add faster cmJoin overloads for stringsOleksandr Koval2020-09-033-4/+69
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cmJoin() is often used with std::string ranges. Generic implementation uses std::ostringstream which is not optimal. With strings we can avoid operator<<() and make much faster implementation. Additional 'initial' argument is useful for cmStringCommand.cxx:HandleAppendCommand().
* | | | | | Merge topic 'cmake_path'Marc Chevrier2020-09-088-8/+1796
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | eb583b0a66 cmake_path command: path management 212e953d35 cmCMakePath: Class for path handling Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Ben Boeckel <ben.boeckel@kitware.com> Acked-by: Raul Tambre <raul@tambre.ee> Merge-request: !5158
| * | | | | cmake_path command: path managementMarc Chevrier2020-09-066-8/+1077
| | | | | | | | | | | | | | | | | | | | | | | | Fixes: #19568, #20922
| * | | | | cmCMakePath: Class for path handlingMarc Chevrier2020-09-063-0/+719
| | | | | |
* | | | | | CMake Nightly Date StampKitware Robot2020-09-081-1/+1
| | | | | |
* | | | | | Merge topic 'fix-compare'Kyle Edwards2020-09-071-3/+4
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4bc1486cd3 cmConditionEvaluator: Avoid comparing pointers Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5189