Craig Scott
4aace9b015
Merge topic 'ctest-update-version-override'
...
2a34d0ac36 ctest: Add new variable CTEST_UPDATE_VERSION_OVERRIDE
7ddac95121 Help: cross-ref and wording of docs related to ctest_update()
a0d04d8810 testing: Update terminology in ctest_update tests
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Zack Galbreath <zack.galbreath@kitware.com >
Merge-request: !3277
2019-05-08 08:49:34 -04:00
Zack Galbreath
2a34d0ac36
ctest: Add new variable CTEST_UPDATE_VERSION_OVERRIDE
...
Set this in a CTest script to explicitly define what the current revision
will be reported as in Update.xml.
2019-05-07 10:45:47 -04:00
Brad King
9713154cf6
Merge topic 'jobs-positive-value'
...
6ad699358b cmake: --build -j <jobs> should not accept 0.
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !3255
2019-05-03 11:45:32 -04:00
Zack Galbreath
7ddac95121
Help: cross-ref and wording of docs related to ctest_update()
...
Provide better motivation for users to click through to the CTest manual
from the ctest_update command help page.
2019-05-03 20:26:50 +10:00
Marc Chevrier
6e5ccabe9b
Genex: Update $<TARGET_FILE_BASE_NAME:...>: take care of POSTFIX
...
This capability complement MR !3190 and !3207
and is also needed to solve issue #18771 .
2019-05-02 11:01:10 +02:00
Fred Baksik
6ad699358b
cmake: --build -j <jobs> should not accept 0.
...
Fixes #19059
2019-05-01 09:15:51 -04:00
Craig Scott
e138207c42
Merge topic 'message-new-types-and-logging'
...
599587feb1 message(): Minor code modernization
6cc93b370e message(): Add support for log levels
377d1b7896 cmSystemTools: Remove unused message-related code, simplify logic
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Brad King <brad.king@kitware.com >
Merge-request: !3268
2019-04-30 18:35:06 -04:00
Brad King
d0e6fc2833
Merge topic 'relax_TARGET_OBJECT_generator_expr'
...
ce078dda79 Relax the usage of TARGET_OBJECTS generator expression
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !3178
2019-04-30 10:09:52 -04:00
Brad King
d9a4da453f
Merge topic 'server-deprecate'
...
996e1885c4 server: deprecate in favor of the file-api
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Kyle Edwards <kyle.edwards@kitware.com >
Merge-request: !3251
2019-04-30 10:07:27 -04:00
Brad King
60b28de5c8
Merge topic 'add-execute_process-command-echo'
...
044dcf9f8d execute_process: Add option to echo command lines
d350fb6889 execute_process: Manage KWSys Process lifetime with unique_ptr
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !3165
2019-04-30 10:05:09 -04:00
Alex Turbov
6cc93b370e
message(): Add support for log levels
...
Relates: #18943
Co-Authored-By: Craig Scott <craig.scott@crascit.com >
2019-04-28 22:45:44 +10:00
Brad King
996e1885c4
server: deprecate in favor of the file-api
...
Document the server mode as deprecated. Add a deprecation message
to the configure step output when invoked through server mode.
Closes : #19101
2019-04-22 09:38:44 -04:00
Brad King
d0e3701861
Merge topic 'msvc-warning-flags'
...
1baf122cd4 MSVC: Do not add /W3 to CMAKE_<LANG>_FLAGS by default
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !3250
2019-04-22 07:51:01 -04:00
Brad King
cb23f2ac8b
Merge topic 'vs-default-platform'
...
db02be85a0 VS: Provide the default platform name to project code
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !3246
2019-04-22 07:38:33 -04:00
Robert Maynard
ce078dda79
Relax the usage of TARGET_OBJECTS generator expression
...
The geneator expression can now be used with static, shared, and
module libraries and executables.
2019-04-19 13:52:50 -04:00
Bill Hoffman
044dcf9f8d
execute_process: Add option to echo command lines
...
Add COMMAND_ECHO option to the execute_process command. This will allow
execute_process to show the command it will run. Also add a cmake variable
CMAKE_EXECUTE_PROCESS_COMMAND_ECHO. Both the option and the variable can
be set to one of the following: STDERR|STDOUT|NONE. The command will be
printed to stderr or stdout or not at all.
Fixes : #18933
2019-04-19 13:32:08 -04:00
Brad King
1baf122cd4
MSVC: Do not add /W3 to CMAKE_<LANG>_FLAGS by default
...
We do not add default warning flags on other compilers, and having
a warning flag in the default flags makes it hard for projects to
customize the warning level. They need to use string processing
to remove `/W3` from `CMAKE_{C,CXX}_FLAGS`. Therefore we should
drop it.
However, projects may be using string processing to replace `/W3`
with another flag, so we cannot simply drop it. Add a policy to
drop it in a compatible way.
Fixes : #18317
2019-04-19 12:56:49 -04:00
Brad King
db02be85a0
VS: Provide the default platform name to project code
...
The value of `CMAKE_VS_PLATFORM_NAME` is computed by Visual Studio
generators based on `CMAKE_GENERATOR_PLATFORM` or some default.
Prior to the VS 2019 generator, the default was always `Win32`.
However, for the `Visual Studio 16 2019` generator, the default is
based on the host platform.
Store the default in a new `CMAKE_VS_PLATFORM_NAME_DEFAULT` variable for
use by project code. This is particularly useful in toolchain files
because they are allowed to set `CMAKE_GENERATOR_PLATFORM` and so
`CMAKE_VS_PLATFORM_NAME` is not yet known. Of course the toolchain file
author knows whether it will set `CMAKE_GENERATOR_PLATFORM`, and if not
then `CMAKE_VS_PLATFORM_NAME_DEFAULT` provides the platform name that
will be used.
Fixes : #19177
2019-04-19 07:46:13 -04:00
Brad King
2ed688a863
Merge topic 'msvc-runtime-library'
...
fb3370b6a1 MSVC: Add abstraction for runtime library selection
f621e7fa5d VS: Fix Fortran runtime library flag map special case for '-' options
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Ben Boeckel <ben.boeckel@kitware.com >
Acked-by: Leonid Pospelov <pospelovlm@yandex.ru >
Merge-request: !3211
2019-04-17 11:01:37 -04:00
Brad King
fb3370b6a1
MSVC: Add abstraction for runtime library selection
...
Replace our hard-coded defaults for `/MD` and `/MDd` with a first-class
abstraction to select the runtime library from an enumeration of logical
names. We've long hesitated to do this because the idea of "runtime
library selection" touches on related concepts on several platforms.
Avoid that scope creep by simply defining an abstraction that applies
only when targeting the MSVC ABI on Windows.
Removing the old default flags requires a policy because existing
projects may rely on string processing to edit them and choose a runtime
library under the old behavior. Add policy CMP0091 to provide
compatibility.
Fixes : #19108
2019-04-17 11:00:44 -04:00
Brad King
2d37678226
Merge topic 'vs-project-import'
...
d145d72e70 VS: add target property VS_PROJECT_IMPORT_<propspath>
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !3143
2019-04-16 13:43:52 -04:00
Leonid Pospelov
d145d72e70
VS: add target property VS_PROJECT_IMPORT_<propspath>
...
Fixes : #18998
2019-04-15 13:05:07 -04:00
Marc Chevrier
60ec292258
Genex: Rename $<TARGET_*_OUTPUT_NAME:...> in $<TARGET_*_FILE_BASE_NAME:...>
2019-04-15 18:22:14 +02:00
Marc Chevrier
b70bac647d
Genex: add $<TARGET_FILE_PREFIX:...> and $<TARGET_FILE_SUFFIX:...>
...
These capabilities complement MR !3190
and is also needed to solve issue #18771 .
2019-04-10 23:45:12 +02:00
Brad King
a289d79517
Merge topic 'improve-formatting-of-help'
...
cb33befe2d Modules: Update documentation formatting
0e4fbb4a1f Help: Improve formatting of Help documentation
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Ben Boeckel <ben.boeckel@kitware.com >
Merge-request: !3199
2019-04-09 08:30:15 -04:00
Sebastian Lipponer
698f51abac
Genex: Add $<FILTER:list,INCLUDE|EXCLUDE,regex>
2019-04-08 19:57:22 +02:00
Sebastian Lipponer
32d7b0cc2c
Help: Move entry to correct section in cmake-generator-expressions(7) manual
...
The generator expression $<REMOVE_DUPLICATES:list> is string-valued, not
boolean-valued.
2019-04-08 19:19:29 +02:00
Bartosz Kosiorek
cb33befe2d
Modules: Update documentation formatting
2019-04-08 14:55:56 +02:00
Bartosz Kosiorek
0e4fbb4a1f
Help: Improve formatting of Help documentation
2019-04-08 14:53:31 +02:00
Marc Chevrier
1889ed923e
Genex: Add capability to retrieve base name for various target artifacts
...
This new capability is required to solve efficiently issue #18771
2019-04-08 07:49:08 -04:00
Brad King
0dfb056cd3
Merge topic 'pr.projectbefore'
...
0761186949 project: Add variable CMAKE_PROJECT_INCLUDE_BEFORE
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !3175
2019-04-04 11:32:41 -04:00
Brad King
a63a50c77a
Merge topic 'remove_duplicates'
...
abbb8a7b1d Genex: Add $<REMOVE_DUPLICATES:list>
11338389e5 Help: Fix description in cmake-generator-expressions(7) manual
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !3154
2019-04-04 11:27:28 -04:00
Sebastian Lipponer
abbb8a7b1d
Genex: Add $<REMOVE_DUPLICATES:list>
2019-04-01 21:52:17 +02:00
Sebastian Lipponer
11338389e5
Help: Fix description in cmake-generator-expressions(7) manual
2019-04-01 21:50:18 +02:00
Ruslan Baratov
0761186949
project: Add variable CMAKE_PROJECT_INCLUDE_BEFORE
2019-04-01 20:30:19 +03:00
Ruslan Baratov
dda0190458
project: Add variable CMAKE_PROJECT_INCLUDE
2019-03-27 22:39:02 +03:00
Brad King
3744bd0a0a
Merge topic 'xcodescheme2'
...
413b71485a Xcode: Create Xcode schemes per target
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !3098
2019-03-22 09:16:02 -04:00
Harry Mallon
413b71485a
Xcode: Create Xcode schemes per target
2019-03-21 16:50:41 +00:00
Kyle Edwards
8c0b7aa17d
Merge topic 'cmake--install'
...
73f23d1e00 cmake: add '--install <dir>' option
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Alex Turbov <i.zaufi@gmail.com >
Acked-by: Bartosz <gang65@poczta.onet.pl >
Acked-by: Cristian Adam <cristian.adam@gmail.com >
Rejected-by: Alex Turbov <i.zaufi@gmail.com >
Merge-request: !3069
2019-03-19 13:39:18 -04:00
Kyle Edwards
f1e53266e9
Merge topic 'improve-tar-command'
...
8634576dcb cmake: Don't interrupt archive creation if unable to read a file.
c7c6a4a2cc Help: Update 'tar' documentation with supported arguments
7c47fd8cd1 cmake: tar: Display warning when no files provided during archive creation
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !3080
2019-03-19 13:37:59 -04:00
Brad King
146b959491
Merge topic 'environment-modules'
...
dfea916d3c FindEnvModules: Provide a CMake interface to environment modules
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !3076
2019-03-19 08:53:35 -04:00
Bartosz Kosiorek
c7c6a4a2cc
Help: Update 'tar' documentation with supported arguments
2019-03-18 17:08:20 +01:00
Chuck Atkins
dfea916d3c
FindEnvModules: Provide a CMake interface to environment modules
2019-03-18 11:47:35 -04:00
Jiang Yi
73f23d1e00
cmake: add '--install <dir>' option
...
Fixes : #19023
2019-03-17 01:31:25 +08:00
Brad King
3261f23870
Merge topic 'export-package-default-off'
...
9bede5c4ce export: Disable PACKAGE mode user package registry by default
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Lukas Mosimann <lumosimann@gmail.com >
Merge-request: !3041
2019-03-15 10:45:51 -04:00
Robert Maynard
9bede5c4ce
export: Disable PACKAGE mode user package registry by default
...
The user package registry populated by the `export()` command causes
side effects outside the build and source directories. Such effects
should be opt-in rather than op-out. Introduce a policy to change
default behavior of `export(PACKAGE)` to do nothing.
2019-03-15 10:24:47 -04:00
Brad King
101621ee52
Merge topic 'xcodescheme'
...
40be48f890 XCode: Add scheme option XCODE_SCHEME_DEBUG_AS_ROOT
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !3084
2019-03-14 11:07:53 -04:00
Brad King
accbf41da5
Merge topic 'short-commands'
...
077ab5774c cmake: add short version of '--target <tgt>...' option
071f5e1544 cmake: Reformat '--parallel' and '--verbose' options in help
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !3078
2019-03-14 11:06:19 -04:00
Brad King
80b761b924
Merge topic 'update-documentation'
...
da2e588935 cmake: Upgrade 'cmake -E' commands description
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !3089
2019-03-13 10:19:21 -04:00
Brad King
7b81b1c72c
Merge topic 'cuda_compiler_generator_expressions'
...
b53766b205 CUDA: Support compiler id and version generator expressions
b544e34af6 All VersionNode use the same capitalization pattern
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !3085
2019-03-13 10:16:25 -04:00