Brad King
9daa244e99
Merge topic 'find_item-doc-update'
...
98af010b5c Help: Avoid duplicating registry query syntax in multiple find_* commands
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7278
2022-05-19 09:51:26 -04:00
Brad King
758756d1ba
Merge topic 'ignore-werror-command-arg'
...
65f7053d6c COMPILE_WARNING_AS_ERROR: Add command-line option
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7268
2022-05-19 09:43:53 -04:00
Marc Chevrier
98af010b5c
Help: Avoid duplicating registry query syntax in multiple find_* commands
...
In commit 8d7e80cf3d (find_* commands: add control over Windows registry
views, 2022-04-16) we added documentation that is repeated by multiple
find commands. Move it to a dedicated manual section to avoid duplication.
2022-05-18 12:43:58 -04:00
Martin Duffy
65f7053d6c
COMPILE_WARNING_AS_ERROR: Add command-line option
...
Add command-line option `--compile-no-warning-as-error` to ignore value of
`COMPILE_WARNING_AS_ERROR`.
Issue: #19085
2022-05-18 10:30:30 -04:00
Kyle Edwards
259c265112
VERIFY_HEADER_SETS: Rename to VERIFY_INTERFACE_HEADER_SETS
...
Issue: #23448
2022-05-18 10:18:40 -04:00
Brad King
a7cd15a61c
Merge topic 'try_compile-project-platform-vars'
...
a6562ff579 try_compile: Add option to skip passing platform variables
4843a37676 try_compile: Propagate platform variables in project-mode too
Acked-by: Kitware Robot <kwrobot@kitware.com >
Tested-by: buildbot <buildbot@kitware.com >
Merge-request: !7265
2022-05-17 08:57:55 -04:00
Brad King
a6562ff579
try_compile: Add option to skip passing platform variables
...
Add a `CMAKE_TRY_COMPILE_NO_PLATFORM_VARIABLES` variable to tell
`try_compile` not to pass platform variables to the test project.
Issue: #23219
2022-05-16 10:47:21 -04:00
Brad King
4843a37676
try_compile: Propagate platform variables in project-mode too
...
Add policy CMP0137 to propagate both our builtin variables and those
listed by `CMAKE_TRY_COMPILE_PLATFORM_VARIABLES` to `try_compile`
whole-project builds.
Inspired-by: Alexander Neumann <Alexander.Neumann@hamburg.de >
Fixes : #23219
2022-05-16 10:39:42 -04:00
Brad King
c4ed5341c4
Merge topic 'CMAKE_PROJECT_TOP_LEVEL_INCLUDES'
...
a6c34b0353 project(): Add new CMAKE_PROJECT_TOP_LEVEL_INCLUDES file injection point
8aa29a1793 CMakeDetermineSystem: Remove unreachable code
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !7250
2022-05-16 09:26:59 -04:00
Brad King
e00e67cb92
Merge topic 'presets-pathListSep'
...
ba969ce5fe cmake-presets: add ${pathListSep} macro
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !7234
2022-05-13 08:54:08 -04:00
Craig Scott
a6c34b0353
project(): Add new CMAKE_PROJECT_TOP_LEVEL_INCLUDES file injection point
...
Fixes : #22685
2022-05-13 18:03:36 +10:00
Erin Melucci
ba969ce5fe
cmake-presets: add ${pathListSep} macro
...
Fixes : #23282
2022-05-12 10:37:49 -04:00
Brad King
79b64690d9
Merge topic 'werror-property'
...
76a08cd253 COMPILE_WARNING_AS_ERROR: Add options to treat warnings as errors
Acked-by: Kitware Robot <kwrobot@kitware.com >
Tested-by: buildbot <buildbot@kitware.com >
Acked-by: Michael Hirsch <michael@scivision.dev >
Merge-request: !7187
2022-05-10 10:30:42 -04:00
Martin Duffy
76a08cd253
COMPILE_WARNING_AS_ERROR: Add options to treat warnings as errors
...
Add `COMPILE_WARNING_AS_ERROR` target property and supporting
`CMAKE_COMPILE_WARNING_AS_ERROR` variable.
`COMPILE_WARNING_AS_ERROR` is initialized by
`CMAKE_COMPILE_WARNING_AS_ERROR`. It is a boolean variable. If it is
true, it expands to a different flag depending on the compiler such that
any warnings at compile will be treated as errors.
Supports compiler ids that I could find a relevant flag for.
2022-05-06 12:14:37 -04:00
Cameron Cawley
33da5824ac
OpenWatcom: Allow specifying the runtime library
...
Add a `CMAKE_WATCOM_RUNTIME_LIBRARY` variable to control the
runtime library selection. Add policy CMP0136 to switch to
in place of the old hard-coded default flags.
Fixes : #23178
2022-05-06 10:40:58 -04:00
Brad King
849ad97d95
Merge topic 'truncation_relnotes'
...
99cad40172 Help: Document version of ctest(1) adding output truncation mode
a6f2c13727 Help: Add release notes for test-output-truncation
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7242
2022-05-06 09:00:26 -04:00
Craig Scott
c5dff5ace2
Merge topic 'FetchContent_find_package_integration'
...
29e31e2825 Packages: Integrate FetchContent and find_package()
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Acked-by: huangqinjin <huangqinjin@gmail.com >
Merge-request: !5688
2022-05-06 08:33:38 -04:00
Brad King
8a40680524
Merge topic 'HelpExit'
...
0aea13d20b Help: for message(FATAL_ERROR), document nonzero exit code
cc97725137 Help: document exit code of command cmake(1)
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7175
2022-05-05 12:51:47 -04:00
Brad King
213f391715
Merge topic 'HelpEnv'
...
a693da21f3 Help: from command:if, link to environment variables
ab2bdbaf31 Help: Cross-reference ENV operator from cmake-language(7) manual
ee4e728a69 Help: From Environment Variables section, link to cmake -E env etc
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7239
2022-05-05 12:50:53 -04:00
Brad King
99cad40172
Help: Document version of ctest(1) adding output truncation mode
...
While at it, fix mode value markup.
Issue: #23206
2022-05-05 12:42:59 -04:00
Joachim Wuttke (h)
0aea13d20b
Help: for message(FATAL_ERROR), document nonzero exit code
2022-05-05 09:43:39 -04:00
Joachim Wuttke (h)
ab2bdbaf31
Help: Cross-reference ENV operator from cmake-language(7) manual
2022-05-05 09:36:23 -04:00
Joachim Wuttke (h)
ee4e728a69
Help: From Environment Variables section, link to cmake -E env etc
2022-05-05 09:35:57 -04:00
Brad King
cd20592c6d
Merge topic 'ExternalProject-no-extract-timestamp'
...
a283e58b51 ExternalProject: Add DOWNLOAD_EXTRACT_TIMESTAMP option and policy
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7137
2022-05-05 09:20:41 -04:00
Kasper Laudrup
a283e58b51
ExternalProject: Add DOWNLOAD_EXTRACT_TIMESTAMP option and policy
...
Add the option to keep the current filestamps when extracting an
archive in ExternalProject_Add.
Enabling this option makes the behavior consistent with how
ExternalProject_Add is used when checking out code from revision
control instead of an archive.
Fixes : #22746
2022-05-05 09:01:54 +10:00
Craig Scott
c150f89f4d
CPack: Remove the deprecated PackageMaker generator
...
This CPack generator has been deprecated since commit 7bf187499f
(CPack: Deprecate PackageMaker generator, 2020-01-31).
Fixes : #23344
2022-05-05 08:36:44 +10:00
Joachim Wuttke (h)
cc97725137
Help: document exit code of command cmake(1)
2022-05-04 14:17:01 +02:00
Craig Scott
29e31e2825
Packages: Integrate FetchContent and find_package()
...
Allow FetchContent_MakeAvailable() to try a call to
find_package() first, or redirect a find_package() call to
FetchContent_MakeAvailable(). The user can set variables
to control which of these are allowed or tried by default.
Fixes : #21687
2022-05-03 16:48:11 +10:00
Marc Chevrier
8d7e80cf3d
find_* commands: add control over Windows registry views
...
Fixes : #22775
2022-04-29 22:00:02 +02:00
Brad King
90d5d4285b
Merge topic 'doc-genex-REMOVE_DUPLICATES'
...
484b992f25 Help: Clarify which items are retained by $<REMOVE_DUPLICATES:...>
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7217
2022-04-28 09:49:26 -04:00
Brad King
3b31397dc3
Merge topic 'manual-fileset-for-header-only-libraries'
...
4b25a0d512 Help/manual: Update header-only library example
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7198
2022-04-28 09:38:37 -04:00
Craig Scott
484b992f25
Help: Clarify which items are retained by $<REMOVE_DUPLICATES:...>
2022-04-28 11:38:51 +10:00
Martin Duffy
4b25a0d512
Help/manual: Update header-only library example
...
Use target_sources with a named file set for the header-only library
example in cmake-buildsystem7.
Issue: #23400
2022-04-27 09:32:39 -04:00
Brad King
07a54b2bb2
Merge topic 'target-bundle-dir-name-genex'
...
997af2e1a6 Genex: Add TARGET_BUNDLE_DIR_NAME
627b2eba6c Help: Make TARGET_BUNDLE[_CONTENT]_DIR examples more precise
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7177
2022-04-26 11:15:47 -04:00
Ben Leadbetter
997af2e1a6
Genex: Add TARGET_BUNDLE_DIR_NAME
...
Evaluate to the name of the bundle directory for a given bundle target.
Fixes : #23409
2022-04-22 09:23:46 -04:00
Brad King
627b2eba6c
Help: Make TARGET_BUNDLE[_CONTENT]_DIR examples more precise
...
The `TARGET_BUNDLE_DIR` and `TARGET_BUNDLE_CONTENT_DIR` generator
expressions produce absolute paths. Show them in the examples.
Suggested-by: Ben Leadbetter <ben.leadbetter@native-instruments.com >
2022-04-22 09:22:11 -04:00
Brad King
1bd85e8f3f
Merge topic 'NO_CMAKE_INSTALL_PREFIX'
...
42f7e39789 Find: Support per call disabling of CMAKE_INSTALL_PREFIX
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !7163
2022-04-22 08:59:09 -04:00
Brad King
722e4d4619
Merge topic 'cpack-dmg-sla'
...
b760828d3f CPack/DMG: Do not use CPACK_RESOURCE_FILE_LICENSE for SLA by default
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !7176
2022-04-20 11:38:15 -04:00
Brad King
ac68695b94
Merge topic 'vs-dotnet-startup-object'
...
d89af11f89 VS: Add StartupObject property for managed .NET projects
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7171
2022-04-20 11:35:03 -04:00
Brad King
bfefcd5734
Merge topic 'target-runtime-dlls-doc'
...
692aacfc72 Help: Remove references to MODULE in $<TARGET_RUNTIME_DLLS> doc
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7186
2022-04-20 11:29:10 -04:00
Kyle Edwards
692aacfc72
Help: Remove references to MODULE in $<TARGET_RUNTIME_DLLS> doc
2022-04-19 12:45:22 -04:00
Robert Maynard
42f7e39789
Find: Support per call disabling of CMAKE_INSTALL_PREFIX
...
Fixes #23359
2022-04-15 09:33:55 -04:00
Brad King
b760828d3f
CPack/DMG: Do not use CPACK_RESOURCE_FILE_LICENSE for SLA by default
...
Since macOS 12.0 deprecated the tools needed to attach a SLA to a
`.dmg`, we should no longer do this by default. Add a policy to
change the default to off.
Fixes : #22978
2022-04-14 10:14:58 -04:00
Florian Schweiger
d89af11f89
VS: Add StartupObject property for managed .NET projects
2022-04-12 15:35:17 +02:00
Brad King
c508935dad
Merge topic 'adsp-platform-and-compilers'
...
87142bbd5f ADSP: Add dedicated platform module
e9eabb0dcd ADSP: Configure compiler in compiler module
88b38f531a ADSP: Support both VDSP++ and CCES for ADSP compilers
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7123
2022-04-06 12:04:43 -04:00
Chris Wright
87142bbd5f
ADSP: Add dedicated platform module
2022-04-04 17:05:09 +01:00
Gregor Jasny
53ca6edd8a
xcode: add support for xcconfig files
...
Fixes : #18420
2022-04-03 22:39:34 +02:00
Brad King
a7b325e203
Merge topic 'verify-header-sets'
...
c798744f81 FILE_SET: Add VERIFY_HEADER_SETS target property
Acked-by: Kitware Robot <kwrobot@kitware.com >
Tested-by: buildbot <buildbot@kitware.com >
Merge-request: !7085
2022-03-30 09:10:25 -04:00
Kyle Edwards
c798744f81
FILE_SET: Add VERIFY_HEADER_SETS target property
...
Fixes : #23338
2022-03-29 13:58:27 -04:00
Craig Scott
05e510bf0b
CMP0132: Don't set compiler environment variables on first run
...
When running CMake for the first time in a build tree, for some
generators CMake would set compiler environment variables
like CC, CXX, etc. when the corresponding language is enabled.
That behavior was never documented and can result in different
behavior between the first and subsequent runs. Add a policy
to no longer set those environment variables.
Fixes : #21378
2022-03-29 09:42:59 -04:00