summaryrefslogtreecommitdiffstats
path: root/Source
Commit message (Collapse)AuthorAgeFilesLines
* Add INTERFACE libraries to generated buildsystem if they have SOURCESBrad King2020-08-0710-63/+47
| | | | | | | | | | | | | | | | | | | | | | | | INTERFACE libraries were created with the intention of collecting usage requirements for use by other targets via `target_link_libraries`. Therefore they were not allowed to have SOURCES and were not included in the generated buildsystem. In practice, this has become limiting: * Header-only libraries do have sources, they just do not compile. Developers should be able to edit those sources (the header files) in their IDE. * Header-only libraries may need to generate some of their header files via custom commands. Some projects work around these limitations by pairing each interface library with an `add_custom_target` that makes the header files and custom commands appear in the generated buildsystem and in IDEs. Lift such limitations by allowing INTERFACE libraries to have SOURCES. For those with sources, add a corresponding build target to the generated buildsystem. Fixes: #19145
* Remove filtering of allowed INTERFACE library propertiesBrad King2020-08-036-104/+6
| | | | | | | | | | | Previously we disallowed use of arbitrary properties on INTERFACE libraries. The goal was to future-proof projects using them by not allowing properties to be set that may affect their future inclusion in the generated buildsystem. In order to prepare to actually include INTERFACE libraries in the generated buildsystem, drop the filter and allow arbitrary properties to be set. Issue: #19145
* Makefiles: Use IsInBuildSystem in global generator target type checksBrad King2020-08-031-21/+9
| | | | | | Follow up from commit 422d9a0ab2 (Factor out generator checks for filtering out interface libraries, 2020-07-20) with more uses of `IsInBuildSystem`.
* CMake Nightly Date StampKitware Robot2020-08-011-1/+1
|
* CMake Nightly Date StampKitware Robot2020-07-311-1/+1
|
* Merge topic 'unity_no_skip_autogen'Brad King2020-07-301-1/+0
|\ | | | | | | | | | | | | 7051250a6c Unity Builds: Do not set SKIP_AUTOGEN to source files Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5081
| * Unity Builds: Do not set SKIP_AUTOGEN to source filesCristian Adam2020-07-291-1/+0
| | | | | | | | Fixes: #21028
| * Merge topic 'revert-add_test-special-chars' into release-3.18Brad King2020-07-281-7/+7
| |\ | | | | | | | | | | | | | | | | | | 5fc5f4d26e add_test: Revert "Allow special characters in test name" Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5067
| * \ Merge topic 'xcode-12-legacy-deprecation' into release-3.18Brad King2020-07-271-0/+2
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | 36fc3a1e84 Xcode: Suppress legacy build system deprecation warning Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5052
| * \ \ Merge topic 'vs-lang-flags' into release-3.18Brad King2020-07-271-0/+6
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | c4109a1bc8 VS: Restore toleration of target-wide -TP flag with MSVC Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5051
* | | | | CMake Nightly Date StampKitware Robot2020-07-301-1/+1
| | | | |
* | | | | Merge topic 'cmcomputecomponentgraph-compute-method'Brad King2020-07-294-2/+11
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bd0d03386b cmComputeComponentGraph: Move work out of constructor into Compute() method Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5079
| * | | | | cmComputeComponentGraph: Move work out of constructor into Compute() methodKyle Edwards2020-07-284-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The computation of Tarjan's algorithm is an expensive operation which should not be done in the constructor. Move this work into a dedicated Compute() method, and call this method explicitly.
* | | | | | Merge topic 'refactor_cmTarget_language_initProperties'Brad King2020-07-291-25/+17
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6f1c04055f cmTarget: Refactor init of common language properties Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5077
| * | | | | | cmTarget: Refactor init of common language propertiesRobert Maynard2020-07-281-25/+17
| | | | | | |
* | | | | | | Merge topic 'use-nonempty'Brad King2020-07-2926-86/+85
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f37c14e930 Source: use cmNonempty() Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5072
| * | | | | | | Source: use cmNonempty()Vitaly Stakhovsky2020-07-2826-86/+85
| |/ / / / / /
* | | | | | | Merge topic 'noduplicates'Brad King2020-07-292-5/+3
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 78357e98a4 Avoid duplicate calls to GetDefinition Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5073
| * | | | | | | Avoid duplicate calls to GetDefinitionVitaly Stakhovsky2020-07-282-5/+3
| |/ / / / / /
* | | | | | | CMake Nightly Date StampKitware Robot2020-07-291-1/+1
| | | | | | |
* | | | | | | Merge topic 'file-download-no-save'Craig Scott2020-07-281-22/+41
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fed7d8f76d file(DOWNLOAD): Make file argument optional Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5060
| * | | | | | file(DOWNLOAD): Make file argument optionalKyle Edwards2020-07-271-22/+41
| | | | | | |
* | | | | | | Merge topic 'cleanup-target-types'Brad King2020-07-2821-143/+186
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ef796cc743 cmGeneratorTarget: Skip computing link implementation for custom targets 45158b2afe cmGeneratorTarget: Simplify logic in ComputeLinkInterfaceLibraries d6b1f5704e cmGeneratorTarget: Add missing nullptr checks 7695b67500 cmComputeTargetDepends: Add missing nullptr check 95b5df8646 cmGeneratorTarget: Skip computing languages for custom targets 2f0790df50 Factor out generator checks for filtering on non-compiling targets 422d9a0ab2 Factor out generator checks for filtering out interface libraries bce82df0aa cmGeneratorTarget: Remove unnecessary target type check in dependency tracing ... Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Kyle Edwards <kyle.edwards@kitware.com> Merge-request: !5038
| * | | | | | | cmGeneratorTarget: Skip computing link implementation for custom targetsBrad King2020-07-271-4/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Targets created by `add_custom_target` cannot be used with `target_link_libraries` and so have no link implementation.
| * | | | | | | cmGeneratorTarget: Simplify logic in ComputeLinkInterfaceLibrariesBrad King2020-07-231-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also check the result of `GetLinkImplementationLibrariesInternal` before using it.
| * | | | | | | cmGeneratorTarget: Add missing nullptr checksBrad King2020-07-231-15/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Check the result of `GetLinkImplementationLibraries` before using it.
| * | | | | | | cmComputeTargetDepends: Add missing nullptr checkBrad King2020-07-231-7/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Check the result of `GetLinkImplementation` before using it.
| * | | | | | | cmGeneratorTarget: Skip computing languages for custom targetsBrad King2020-07-231-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Targets created by `add_custom_target` do not compile any sources and therefore have no languages.
| * | | | | | | Factor out generator checks for filtering on non-compiling targetsBrad King2020-07-237-22/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a `cmGeneratorTarget::CanCompileSources` helper method to tell generators whether a target might compile anything.
| * | | | | | | Factor out generator checks for filtering out interface librariesBrad King2020-07-2319-48/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a `cmGeneratorTarget::IsInBuildSystem` helper method to tell generators whether a target should participate in the generated build system.
| * | | | | | | cmGeneratorTarget: Remove unnecessary target type check in dependency tracingBrad King2020-07-231-23/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit 2600e923a6 (Disallow INTERFACE libraries with add_custom_command(TARGET)., 2014-03-19, v3.0.0-rc3~1^2), we do not trace dependencies of INTERFACE libraries that do not participate in the build system. Therefore we can remove a check of the target type from the implementation that had been added by commit 9db9c1fc8b (cmTarget: Don't try to get sources of an INTERFACE_LIBRARY., 2014-02-14, v3.0.0-rc1~20^2).
| * | | | | | | cmTarget: Skip output dir property init for CMake-provided targetsBrad King2020-07-231-1/+2
| | | | | | | |
| * | | | | | | cmTarget: De-duplicate conditions for property initializationBrad King2020-07-231-17/+9
| | | | | | | |
| * | | | | | | cmGlobalNinjaGenerator: Replace switch default with all casesBrad King2020-07-231-2/+3
| | | | | | | |
| * | | | | | | cmLocalUnixMakefileGenerator3: Skip object file listing for custom targetsBrad King2020-07-231-1/+2
| | | | | | | |
* | | | | | | | Merge topic 'cmctest-stdstring'Brad King2020-07-2818-131/+120
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 825b04c67a cmCTest: Members accept std::string parameters Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5064
| * | | | | | | | cmCTest: Members accept std::string parametersVitaly Stakhovsky2020-07-2718-131/+120
| | |_|/ / / / / | |/| | | | | |
* | | | | | | | Merge topic 'revert-add_test-special-chars'Brad King2020-07-281-7/+7
|\ \ \ \ \ \ \ \ | | |_|_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5fc5f4d26e add_test: Revert "Allow special characters in test name" Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5067
| * | | | | | | add_test: Revert "Allow special characters in test name"Brad King2020-07-271-7/+7
| | |_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Revert commit f84af8e270 (add_test: Allow special characters in test name, 2020-05-16, v3.18.0-rc1~142^2). Unfortunately the fix breaks projects that were working around the limitation with manual escaping. The fix can be re-introduced with a policy in a future version. Also add a 3.18.1 release note explaining the change. Fixes: #21017, #20965 Issue: #19391
| * | | | | | Merge topic 'cmake-gui-qt-5.14' into release-3.18Brad King2020-07-231-2/+3
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | af6cf586f6 cmake-gui: Fix crash when built with Qt 5.14 or later Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5045
| * \ \ \ \ \ \ Merge topic 'graphviz-restore-per-target' into release-3.18Brad King2020-07-222-7/+145
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1829220310 Merge branch 'backport-3.17-graphviz-restore-per-target' f3a6b4a209 Tests: Cover Graphviz support for per-target dependency graph options 93549b9224 Graphviz: Restore support for per-target dependency graph options Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5039
| | * \ \ \ \ \ \ Merge branch 'backport-3.17-graphviz-restore-per-target'Brad King2020-07-212-7/+145
| | |\ \ \ \ \ \ \
| * | \ \ \ \ \ \ \ Merge topic 'ghs-crash' into release-3.18Brad King2020-07-211-2/+3
| |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5da2c71165 GHS: Fix crash when GHS_NO_SOURCE_GROUP_FILE property is not defined Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5033
| | * | | | | | | | | GHS: Fix crash when GHS_NO_SOURCE_GROUP_FILE property is not definedBrad King2020-07-201-2/+3
| | |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactoring in commit 36aba01223 (cmGeneratorTarget::GetProperty: return cmProp, 2020-04-29, v3.18.0-rc1~246^2) left out a `nullptr` check. Fixes: #20985
| * | | | | | | | | Merge topic 'strdup' into release-3.18Brad King2020-07-211-0/+4
| |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | eea0337c7d centos5: Fix FTBFS with strdup Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5026
| * \ \ \ \ \ \ \ \ \ Merge topic 'xcode-native-arch' into release-3.18Craig Scott2020-07-212-1/+20
| |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 26673bf480 Xcode: Explicitly specify default native architecture on macOS ce624cfbd4 cmGlobalXCodeGenerator: Save CMAKE_SYSTEM_NAME in member Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5023
| * \ \ \ \ \ \ \ \ \ \ Merge topic 'swift-link-iface' into release-3.18Brad King2020-07-201-0/+3
| |\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 14a5712447 Swift: Fix regression in linking to interface libraries Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5027
| * \ \ \ \ \ \ \ \ \ \ \ Merge topic 'ninja-multi-rsp' into release-3.18Brad King2020-07-171-4/+14
| |\ \ \ \ \ \ \ \ \ \ \ \ | | |_|_|_|/ / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 99ed39b011 Ninja Multi-Config: Make link response files per-config Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5020
* | | | | | | | | | | | | Merge topic 'update-kwsys'Brad King2020-07-285-11/+34
|\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ead4adad75 Merge branch 'upstream-KWSys' into update-kwsys 36819d99c1 KWSys 2020-07-24 (c3054d90) Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5055
| * | | | | | | | | | | | | Merge branch 'upstream-KWSys' into update-kwsysBrad King2020-07-245-11/+34
| | |_|_|_|_|_|_|_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # By KWSys Upstream * upstream-KWSys: KWSys 2020-07-24 (c3054d90)