Brad King
268909518f
Merge topic 'file-CONFIGURE'
...
a6fee09484 file: Add CONFIGURE subcommand
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4436
2020-03-10 08:27:21 -04:00
Leander Beernaert
a6fee09484
file: Add CONFIGURE subcommand
...
Extend the `file()` command with a new `CONFIGURE` subcommand that
behaves the same as `string(CONFIGURE)` except that it writes the
resulting output immediately to a file.
Fixes : #20388
2020-03-09 11:54:02 -04:00
Sylvain Joubert
dc00809596
find_*: Add support for REQUIRED keyword
...
In the same spirit as the REQUIRED keyword on find_package, this will
stop cmake execution with an error on a failed find_program, find_file,
find_path or find_library.
2020-03-06 16:40:26 +01:00
Brad King
05e647759d
Merge topic 'doc-add_custom_command-depends'
...
785f2b2df1 Help: Clarify add_custom_command DEPENDS conversion to file paths
Acked-by: Kitware Robot <kwrobot@kitware.com >
Reviewed-by: Ben Boeckel <ben.boeckel@kitware.com >
Merge-request: !4434
2020-03-06 09:20:02 -05:00
Brad King
995b122471
Merge topic 'FindPython-artifacts-scope'
...
e5b4c74238 FindPython: Add possibility to control scope of artifacts.
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4426
2020-03-06 09:18:24 -05:00
Brad King
785f2b2df1
Help: Clarify add_custom_command DEPENDS conversion to file paths
...
In commit f5126badd8 (add_custom_command: convert DEPENDS path arguments
to absolute paths, 2019-12-18, v3.17.0-rc1~263^2) we updated the
documentation to describe the behavior introduced by that commit.
However, the behavior was removed again by commit fd0ba705ce
(add_custom_command: check if a relative path should be an in-source
path, 2020-01-09, v3.17.0-rc1~141^2~4) without updating the
documentation.
Update the documentation again to describe the behavior as of the latter
commit. Spell out the steps that `cmLocalGenerator::GetRealDependency`
and `cmTargetTraceDependencies::IsUtility` use to add file-level and
target-level dependencies.
2020-03-06 08:44:46 -05:00
Kyle Edwards
e484b4289d
Merge topic 'macos_framework_postfix'
...
ad3f69c86e Add support for FRAMEWORK_MULTI_CONFIG_POSTFIX_<CONFIG>
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4289
2020-03-05 10:50:15 -05:00
Marc Chevrier
e5b4c74238
FindPython: Add possibility to control scope of artifacts.
...
Fixes : #20362
2020-03-05 16:44:48 +01:00
Brad King
af184b138a
Merge topic 'doc-rel-3.16-updates'
...
d25d8e9eef Help: Update CMake 3.16 release notes for 3.16.5
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4425
2020-03-04 08:48:00 -05:00
Alexandru Croitor
ad3f69c86e
Add support for FRAMEWORK_MULTI_CONFIG_POSTFIX_<CONFIG>
2020-03-04 14:30:54 +01:00
Brad King
95b151af90
Merge topic 'FindPython-manage-SOABI-suffix'
...
0c97b73bc0 FindPython: python_add_library can now manage SOABI suffix.
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4420
2020-03-04 08:20:18 -05:00
Brad King
38ac070ead
Merge topic 'cmake_command-eval'
...
598b676b5e cmake_command: Add command to EVAL a CMake script as a string
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4408
2020-03-03 09:19:39 -05:00
Cristian Adam
598b676b5e
cmake_command: Add command to EVAL a CMake script as a string
2020-03-03 08:42:13 -05:00
Marc Chevrier
0c97b73bc0
FindPython: python_add_library can now manage SOABI suffix.
...
Fixes : #20408
2020-03-03 13:13:48 +01:00
Brad King
f18c72815b
Merge topic 'ninja-multi-variable-shuffle-again'
...
c794b70f19 Ninja Multi-Config: Always generate build.ninja
9590c3a400 Generator: Don't allow Ninja Multi-Config variables on other generators
7a63dafafb Ninja Multi-Config: Remove "NMC" from variable names
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4403
2020-02-28 11:32:07 -05:00
Brad King
4aa2e7ace3
Merge topic 'tutorial-have-log-and-exp'
...
07223c5c27 Tutorial: Update Step 5 to work on Windows
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4375
2020-02-27 15:00:11 -05:00
Betsy McPhail
07223c5c27
Tutorial: Update Step 5 to work on Windows
...
`log` and `exp` should be found on Windows systems now, as expected.
Update tests to be more specific in looking for the expected outcome of
the tutorial.
2020-02-27 14:58:24 -05:00
Brad King
2a9cf88917
Merge topic 'Genex-LINK_LANGUAGE'
...
461efa7b51 Genex: Add $<LINK_LANGUAGE:...> and $<LINK_LANG_AND_ID:...>
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4244
2020-02-27 11:18:28 -05:00
Kyle Edwards
c794b70f19
Ninja Multi-Config: Always generate build.ninja
...
If CMAKE_DEFAULT_BUILD_TYPE is not specified, use the first item
from CMAKE_CONFIGURATION_TYPES instead.
2020-02-27 10:39:35 -05:00
Brad King
c58b9c5ab9
Merge topic 'cmake_command-command'
...
54e4f2ad45 cmake_command: Add command to INVOKE other commands by name
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Kyle Edwards <kyle.edwards@kitware.com >
Merge-request: !4286
2020-02-27 10:21:21 -05:00
Brad King
d6fa231127
Merge topic 'execute_process_exclusive_capture'
...
6ec274b002 execute_process: Add ECHO_(OUTPUT|ERROR)_VARIABLE options
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Michael Hirsch, Ph.D. <michael@scivision.dev >
Merge-request: !4383
2020-02-27 09:53:07 -05:00
Brad King
b24d02fa7a
Merge topic 'gen-tgt'
...
d98064f156 Help: cmake-generator-expressions(7): Target-Dependent Queries
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4378
2020-02-27 09:52:19 -05:00
Brad King
a3105d7150
Merge topic 'doc-cpack-ifw'
...
1af49def54 Help: CPackIFW generator: offline installer
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4379
2020-02-27 09:51:25 -05:00
Kyle Edwards
7a63dafafb
Ninja Multi-Config: Remove "NMC" from variable names
...
Also rename `..._DEFAULT_BUILD_FILE_CONFIG` to `..._DEFAULT_BUILD_TYPE`.
These name changes make the variables meaningful for future use by other
generators.
2020-02-27 09:22:08 -05:00
Brad King
d25d8e9eef
Help: Update CMake 3.16 release notes for 3.16.5
2020-02-27 08:52:52 -05:00
Marc Chevrier
1679a60a6e
Merge topic 'FindSWIG-components'
...
e131d9f974 FindSWIG: Add COMPONENTS support for SWIG target languages
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4384
2020-02-27 04:53:02 -05:00
Brad King
85c1b2b6dd
Merge topic 'vs-sln-deploy'
...
7c944da757 VS: Add target property to explicitly control solution deployment
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4357
2020-02-26 11:38:14 -05:00
Marc Chevrier
461efa7b51
Genex: Add $<LINK_LANGUAGE:...> and $<LINK_LANG_AND_ID:...>
...
This MR may help to solve issues #19757 and #18008
Fixes : #19965
2020-02-26 16:38:42 +01:00
Seth R Johnson
e131d9f974
FindSWIG: Add COMPONENTS support for SWIG target languages
...
Newer versions of SWIG drop support for some target languages, and some
forks of SWIG (such as for Fortran and MATLAB) aren't supported by the
mainline version of SWIG.
Swig versions as old as 1.3.6 (circa 2001) and possibly older use the
same format for listing available wrappers "%-15s - Generate %s
wrappers", so component detection should be quite reliable.
2020-02-26 10:12:30 -05:00
Kyle Edwards
3bff839706
Help: Clarify that the CTest resource allocation feature doesn't oversubscribe
2020-02-26 09:56:40 -05:00
Brad King
ab2d170c74
Merge topic 'CPackRPM-trans-scripts'
...
c0534c4a68 CPackRPM: Add PRE_/POST_TRANS scripts
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4387
2020-02-26 08:52:09 -05:00
Brad King
549b1576d2
Merge topic 'cmake-cfg-intdir-ninja-multi'
...
853c3eac6d Help: Note that CMAKE_CFG_INTDIR is not fully supported on Ninja Multi-Config
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4397
2020-02-26 07:51:13 -05:00
Marc Chevrier
facadf6c30
Merge topic 'swig-fortran'
...
a1909e26ac UseSWIG: Enable SWIG Fortran target language
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4380
2020-02-25 17:19:51 -05:00
Kyle Edwards
853c3eac6d
Help: Note that CMAKE_CFG_INTDIR is not fully supported on Ninja Multi-Config
2020-02-25 14:00:43 -05:00
Cristian Adam
54e4f2ad45
cmake_command: Add command to INVOKE other commands by name
...
Fixes : #18392
2020-02-25 13:14:17 -05:00
Joachim Wuttke (h)
d98064f156
Help: cmake-generator-expressions(7): Target-Dependent Queries
...
Explain ``tgt`` at beginning of section.
Then refer to ``tgt`` without redundant reexplanations.
2020-02-25 10:39:18 -05:00
Alexander Boczar
7c944da757
VS: Add target property to explicitly control solution deployment
...
Add a `VS_SOLUTION_DEPLOY` property to control solution deploy mark.
Fixes : #20346
2020-02-25 10:24:23 -05:00
Sarang Joshi
c0534c4a68
CPackRPM: Add PRE_/POST_TRANS scripts
...
Add variables for PRE_TRANS and POST_TRANS scripts.
Fixes : #18917
2020-02-24 14:31:38 -05:00
Seth R Johnson
a1909e26ac
UseSWIG: Enable SWIG Fortran target language
2020-02-24 12:15:48 -05:00
Cristian Adam
6ec274b002
execute_process: Add ECHO_(OUTPUT|ERROR)_VARIABLE options
...
Fixes : #20378
2020-02-24 14:44:14 +01:00
Kyle Edwards
d966634b60
Help: Clarify that the CTest resource allocation feature doesn't oversubscribe
2020-02-21 08:46:02 -05:00
Joachim Wuttke (o)
1af49def54
Help: CPackIFW generator: offline installer
...
Bundle subsections under "Other Settings".
Improve explanation of the Online installer.
2020-02-20 20:25:34 +01:00
Kyle Edwards
97b639d3f1
Help: Make note that file(READ ... HEX) produces lowercase letters
2020-02-19 09:11:15 -05:00
Kyle Edwards
5395bf05eb
string: Add new HEX sub-command
2020-02-19 09:11:05 -05:00
Brad King
084c14d952
Merge topic 'doc-sections'
...
22aac6669b Help: install: use bullet lists to sort out target kinds
b3f4d50348 Help: ifw.rst: Add toc; mv "Hints" section -> subsection of "Variables"
c671966c20 Help: CPackComponent: Sectioning and rewording
05e56b1897 Help: FetchContent, ExternalProject: Command sections -> subsections
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4367
2020-02-18 11:26:27 -05:00
Brad King
200e81ae1b
Merge topic 'doc-string'
...
466b138ea2 Help: string: regex match and replace is a subcase of Search&Replace
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4368
2020-02-18 11:25:52 -05:00
Brad King
c78ae16d81
Add deprecation warnings for policies CMP0071 and below
...
The OLD behaviors of all policies are deprecated, but only by
documentation. Add an explicit deprecation diagnostic for policies
introduced in CMake 3.10 and below to encourage projects to port away
from setting policies to OLD.
2020-02-17 11:44:57 -05:00
Joachim Wuttke (o)
466b138ea2
Help: string: regex match and replace is a subcase of Search&Replace
2020-02-17 17:42:50 +01:00
Joachim Wuttke (o)
22aac6669b
Help: install: use bullet lists to sort out target kinds
2020-02-17 11:29:50 -05:00
Joachim Wuttke (o)
b3f4d50348
Help: ifw.rst: Add toc; mv "Hints" section -> subsection of "Variables"
...
Also explain `@ApplicationsDir@`, thanks to
https://discourse.cmake.org/t/647/2 for help.
2020-02-17 11:14:52 -05:00