Brad King
e216b9bbd3
cmake: Allow CMAKE_BUILD_TYPE to be set by environment variable
...
When no `CMAKE_BUILD_TYPE` is explicitly specified while creating a new
build tree, check for an environment variable of the same name.
Issue: #20983
2021-06-30 10:55:40 -04:00
Brad King
6986a382a9
Help: Document when CMAKE_BUILD_TYPE and CMAKE_CONFIGURATION_TYPES are set
...
Fixes : #19247
2021-06-30 10:55:40 -04:00
Brad King
e96169a3ec
Help: Cross-reference CMAKE_CONFIGURATION_TYPES from CMAKE_BUILD_TYPE
...
The other direction is already linked.
2021-06-30 10:55:40 -04:00
Brad King
9473390ddc
Merge topic 'doc-vs-fortran'
...
ab06f78182 Help: Document VS generator support for Intel Fortran
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !6289
2021-06-30 10:12:44 -04:00
Brad King
ab06f78182
Help: Document VS generator support for Intel Fortran
...
Extend the list of project types added by commit a82eb539f0 (Help:
Describe the type of Visual Studio projects that can be generated,
2018-08-04, v3.13.0-rc1~227^2) to mention that Fortran projects are
supported with Intel compiler integration.
2021-06-30 09:31:55 -04:00
Brad King
6c3ae9827f
Merge topic 'ninja-edit_cache'
...
51bf4094fb Ninja: Use `ccmake` for `edit_cache`
7cb4ad7e39 cmGlobalCommonGenerator: Adopt GetEditCacheCommand
23af78bb78 cmGlobalCommonGenerator: Adopt GetEditCacheTargetName
1db4d74628 cmGlobalCommonGenerator: Add SupportsDirectConsole
61a737b088 cmGlobalNinjaGenerator: Rename SupportsConsolePool to SupportsDirectConsole
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !6272
2021-06-30 07:33:59 -04:00
Brad King
825ad2fb4c
Merge topic 'CMP0126-WARNING' into release-3.21
...
16208ac113 CMP0126: Add control for warnings
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Ben Boeckel <ben.boeckel@kitware.com >
Merge-request: !6282
2021-06-30 07:32:56 -04:00
Brad King
a2f2634a5d
Merge topic 'CMP0126-WARNING'
...
616972197a Merge branch 'backport-3.21-CMP0126-WARNING' into CMP0126-WARNING
16208ac113 CMP0126: Add control for warnings
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Ben Boeckel <ben.boeckel@kitware.com >
Merge-request: !6282
2021-06-30 07:32:56 -04:00
Brad King
a63ae2f1b8
Merge topic 'rpm-suggests'
...
9b53eca317 CPack/RPM: Fix weak dep support
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !6274
2021-06-30 07:29:29 -04:00
Alex Sweet
9b53eca317
CPack/RPM: Fix weak dep support
...
RPM 4.11.3 for el7 contains backported support for the RPM weak dep tags.
It only supports querying those tags, but rpmbuild can not make use of them.
Since CPack relies on rpmbuild --querytags to check for support, this
commit switches to rpm --suggests to check for support of weak
dependencies.
Fixes : #22350
2021-06-29 11:14:54 -04:00
NAKAMURA Takumi
51bf4094fb
Ninja: Use ccmake for edit_cache
...
If `ninja` is new enough to support the console pool, and `ccmake` is
available, use it for `edit_cache`.
2021-06-29 11:07:42 -04:00
Marc Chevrier
616972197a
Merge branch 'backport-3.21-CMP0126-WARNING' into CMP0126-WARNING
2021-06-29 13:41:10 +02:00
Marc Chevrier
16208ac113
CMP0126: Add control for warnings
...
Fixes : #22353
2021-06-29 13:36:28 +02:00
Brad King
480bd71b16
Merge topic 'genex-versionadded' into release-3.21
...
7993aa3075 Help: Add versionadded tags to cmake-generator-expressions(7)
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !6270
2021-06-28 14:01:36 -04:00
Brad King
34f879d99e
Merge topic 'genex-versionadded'
...
7993aa3075 Help: Add versionadded tags to cmake-generator-expressions(7)
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !6270
2021-06-28 14:01:36 -04:00
Brad King
fe3197cfcc
Merge topic 'Help-CMP0102-mention-warning-variable' into release-3.21
...
894645d4a6 Help/CMP0102: mention the varible that controls CMP0102 warnings
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !6275
2021-06-28 14:00:28 -04:00
Brad King
9b55bd480d
Merge topic 'Help-CMP0102-mention-warning-variable'
...
894645d4a6 Help/CMP0102: mention the varible that controls CMP0102 warnings
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !6275
2021-06-28 14:00:28 -04:00
Brad King
efb4cef630
Merge topic 'doc-3.21-relnotes-supportedPlatforms' into release-3.21
...
82ea0aeae4 Help: Clarify 3.21 release note on supportedPlatforms
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !6277
2021-06-28 13:59:18 -04:00
Brad King
cefaff9b84
Merge topic 'doc-3.21-relnotes-supportedPlatforms'
...
82ea0aeae4 Help: Clarify 3.21 release note on supportedPlatforms
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !6277
2021-06-28 13:59:18 -04:00
FeRD (Frank Dana)
7993aa3075
Help: Add versionadded tags to cmake-generator-expressions(7)
2021-06-28 10:40:11 -04:00
Brad King
73f3a8f8ba
Merge topic 'p1689r4-updates'
...
cf22263531 Help/dev/experimental: Link to published P1689R4
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !6278
2021-06-28 10:13:43 -04:00
Brad King
cf22263531
Help/dev/experimental: Link to published P1689R4
2021-06-28 09:58:52 -04:00
Brad King
82ea0aeae4
Help: Clarify 3.21 release note on supportedPlatforms
...
Avoid implying that the field is always present.
Fixes : #22352
2021-06-28 09:53:48 -04:00
Brad King
c8d2e81e09
Merge topic 'target_compile_features-only-apply-to-enabled-languages'
...
a3cafa4237 compile_features: Ignore features that map to languages that aren't enabled
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !6255
2021-06-28 09:26:02 -04:00
Brad King
be78a9bf68
Merge topic 'vs2022'
...
93c718791e VS: Use 64-bit MSBuild in VS 2022
c46b265839 VS: Add Visual Studio 17 2022 generator
b610b7a35c VS: Update v142 CL flag table for VS 17.0 Preview 1
43375c6418 Help: Remove unnecessary Sphinx versionadded markup in VS toolset selection
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !6268
2021-06-28 09:22:38 -04:00
Ben Boeckel
894645d4a6
Help/CMP0102: mention the varible that controls CMP0102 warnings
...
This was missed in the review of !4150 , but was noticed during
discussion of #22353 .
2021-06-28 08:17:25 -04:00
Robert Maynard
a3cafa4237
compile_features: Ignore features that map to languages that aren't enabled
...
Remove the Cuda/ConsumeCompileFeatures test as it only existed to
validate that using `cxx_std_XY` would cause the paired language (CUDA) to also build in mode XY.
2021-06-25 13:39:50 -04:00
Brad King
c46b265839
VS: Add Visual Studio 17 2022 generator
...
Fixes : #22339
2021-06-25 12:45:44 -04:00
Brad King
43375c6418
Help: Remove unnecessary Sphinx versionadded markup in VS toolset selection
...
In a document that says "New in version 3.14", we do not need any blocks
that say "New in version 3.8".
2021-06-25 10:07:31 -04:00
Brad King
004a51e0c2
Merge topic 'fortran-compiler-intrinsics'
...
fe3f846e1b Makefiles: Add support for building Fortran intrinsics
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5518
2021-06-24 09:12:15 -04:00
Isuru Fernando
fe3f846e1b
Makefiles: Add support for building Fortran intrinsics
...
Fixes : #21463
2021-06-24 08:39:47 -04:00
Heiko Thiel
0106842af4
Help: Clarify condition of tree command from source_group.
2021-06-23 17:24:09 +02:00
Brad King
6d9fec6c0b
Merge branch 'release-3.20' into release-3.21
2021-06-21 11:49:10 -04:00
Brad King
3bf56de28f
Merge branch 'release-3.20'
2021-06-21 11:48:17 -04:00
Brad King
25e82666e4
Help: Add 3.20 release note section for 3.20.{3,4,5}
...
Make it clear that the notes for these patch releases were not
forgotten, and that there were simply no changes to documented features
or interfaces.
2021-06-21 11:20:33 -04:00
Brad King
7b0cf0da9d
Merge topic 'tutorial-sphinx-targets'
...
73898c4922 Tutorial: Make code snippets linkable
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !6247
2021-06-21 09:59:57 -04:00
Brad King
6438a03c73
Merge topic 'tutorial-sphinx-targets' into release-3.21
...
73898c4922 Tutorial: Make code snippets linkable
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !6247
2021-06-21 09:59:56 -04:00
Brad King
9612034cac
Merge topic 'doc-source_group-scope'
...
2abce79409 Help: Clarify the usage scope of source_group
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !6246
2021-06-21 09:58:04 -04:00
Brad King
a01a88dc95
Merge topic 'FindPkgConfig-PKG_CONFIG-args'
...
35d3e00e4e FindPkgConfig: split args if loaded from environment
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !6222
2021-06-21 09:53:51 -04:00
Brad King
d60d6c269a
Merge topic 'ctest_runtime_labels'
...
bd38749fd4 ctest: allow test output to add labels
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !6234
2021-06-21 09:52:36 -04:00
Heiko Thiel
2abce79409
Help: Clarify the usage scope of source_group
...
Fixes : #18856
2021-06-18 12:52:43 -04:00
Brad King
73898c4922
Tutorial: Make code snippets linkable
...
Extend the change from commit 9e5bbb69ea (Tutorial: Add captions for
code blocks, 2021-06-11) to also add a Sphinx named target to code
blocks. Name each target after the change the code block makes.
2021-06-18 12:31:45 -04:00
Christopher Degawa
35d3e00e4e
FindPkgConfig: split args if loaded from environment
...
It's common for some people to use the PKG_CONFIG environment variable
to not only load a custom pkg-config/pkgconf but also to load some
default arguments such as `--static` or `--keep-system-libs` which often
worked since shell scripts would call `$PKG_CONFIG --libs pkg` without
quotes, but this breaks FindPkgConfig since it uses the full string as
`argv[0]` and might try looking for a binary called `pkgconf --static`,
instead of looking for `pkgconf` and adding `--static` as the `argv[1]`
Additionally adds RunCMake.FindPkgConfig ARGN test case
Fixes : #22305
Signed-off-by: Christopher Degawa <ccom@randomderp.com >
2021-06-18 11:10:12 -04:00
Ben Boeckel
f29e1874ad
Compiler/MSVC: use the -external:I flag for system includes
...
See: #17904
2021-06-18 09:54:17 -04:00
Zack Galbreath
bd38749fd4
ctest: allow test output to add labels
...
Parse test output for <CTestLabel>...</CTestLabel>.
If found, add this value to the list of labels associated with this test.
2021-06-17 14:09:01 -04:00
Brad King
11695f5985
Begin post-3.21 development
2021-06-17 13:18:30 -04:00
Brad King
d59b76f7b4
Help: Drop development topic notes to prepare release
...
Release versions do not have the development topic section of
the CMake Release Notes index page.
2021-06-17 13:14:21 -04:00
Brad King
8850f6e23f
Merge topic 'doc-3.21-relnotes'
...
f119fbeec5 Help: Update Sphinx versionadded directives for 3.21 release
45acb61432 Help: Organize and revise 3.21 release notes
046aee0441 Help: Consolidate 3.21 release notes
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !6226
2021-06-17 13:09:45 -04:00
Brad King
9c703ff741
Tutorial: Add infrastructure to preserve old links when renaming steps
2021-06-17 12:10:14 -04:00
Josef Angstenberger
9e5bbb69ea
Tutorial: Add captions for code blocks
2021-06-17 11:57:56 -04:00