Brad King
bf8c0d625d
Merge topic 'doc-objc-lang-flags'
...
31e6017bb6 Help: Document ObjC/ObjC++ flag variables
Acked-by: Kitware Robot <kwrobot@kitware.com >
Tested-by: buildbot <buildbot@kitware.com >
Merge-request: !9437
2024-04-19 08:57:28 -04:00
Alexander Borsuk
31e6017bb6
Help: Document ObjC/ObjC++ flag variables
...
Signed-off-by: Alexander Borsuk <me@alex.bio >
2024-04-18 17:48:59 +02:00
Ben Boeckel
678717f3e4
cxxmodules: provide a detection variable for import std
2024-04-18 09:53:21 -04:00
Ben Boeckel
429902ebad
Clang: support creating a target for imported modules
2024-04-12 11:46:40 -04:00
Ben Boeckel
4617f272b4
MSVC: support import std
2024-04-12 11:46:40 -04:00
Ben Boeckel
15bbd1d9b8
Experimental: add an experimental feature gate for import std
2024-04-12 11:46:39 -04:00
Ben Boeckel
2c8361f923
cxxmodules: link to std-providing targets when available
2024-04-11 10:19:44 -04:00
Ben Boeckel
7146cf9248
cmTarget: support the CXX_MODULE_STD property
2024-04-11 10:19:44 -04:00
Ben Boeckel
5bbd2c12db
Help/cmake-cxxmodules: describe the compilation strategy
2024-04-11 10:19:43 -04:00
Craig Scott
97464aa970
enable_language(): Fail if called before project()
...
Fixes : #25550
2024-04-02 23:00:38 +11:00
Brad King
252c2a6fcb
Merge topic 'add_library-no-static-fallback'
...
a61c9afdf8 add_library: Reject shared libraries on platforms that do not support them
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !9347
2024-04-01 09:38:14 -04:00
Brad King
46faaf9667
file(DOWNLOAD|UPLOAD): Add CMAKE_TLS_VERIFY environment variable
...
Issue: #23608
2024-03-30 09:22:04 -04:00
Asit Dhal
a61c9afdf8
add_library: Reject shared libraries on platforms that do not support them
...
Add policy CMP0164 to provide compatibility.
Fixes : #25759
2024-03-29 11:06:32 -04:00
Deniz Bahadir
071f0d6f98
CMP0163: Make GENERATED source file property globally visible
...
This was originally attempted by policy CMP0118, but its
implementation did not cover all intended use cases. We fixed its
documentation in commit 1dabbbb5e0 (CMP0118: Revise documentation to
describe actual behavior, 2024-03-20).
Add new policy CMP0163 to cover the remaining use cases. In particular,
make the `GENERATED` property visible to `get_property` calls in other
directories. In order to capture the original intention of CMP0118,
define CMP0163's NEW behavior to also imply CMP0118's NEW behavior.
Fixes : #25437
Fixes : #25058
2024-03-29 08:54:11 -04:00
scivision
be6763f34b
Help: cmake(1) --toolchain path relative
...
other cmake(1) options are relative to cwd. It is surprising
enough that --toolchain is relative to -B or -S that it's
good to call it out here too.
2024-03-22 17:17:31 -04:00
Brad King
cff8aefc6a
Merge topic 'doc-CMP0118'
...
1dabbbb5e0 CMP0118: Revise documentation to describe actual behavior
d2f5b79795 CMP0118: Fix some tests and add more tests
Acked-by: Kitware Robot <kwrobot@kitware.com >
Tested-by: buildbot <buildbot@kitware.com >
Merge-request: !9358
2024-03-22 09:34:31 -04:00
Deniz Bahadir
1dabbbb5e0
CMP0118: Revise documentation to describe actual behavior
...
The policy was originally intended to make the `GENERATED` source file
property globally visible, but the implementation didn't fully achieve
that goal. Revise the documentation to describe what it actually does.
Issue: #25437
2024-03-21 11:37:46 -04:00
Brad King
388f7bc11b
Merge topic 'fileapi-provide-glob-dependent'
...
6116bcb066 fileapi: Add CONFIGURE_DEPENDS glob info to cmakeFiles object
f578515d02 cmGlobCacheEntry: Add helper to carry CONFIGURE_DEPENDS glob cache arguments
Acked-by: Kitware Robot <kwrobot@kitware.com >
Tested-by: buildbot <buildbot@kitware.com >
Merge-request: !9348
2024-03-21 09:29:00 -04:00
Arctic Lampyrid
6116bcb066
fileapi: Add CONFIGURE_DEPENDS glob info to cmakeFiles object
...
Fixes : #25668
Co-authored-by: Brad King <brad.king@kitware.com >
2024-03-19 14:55:25 -04:00
Brad King
aa643b66a8
Merge topic 'doc-release-3.29-typos'
...
eceb368ccc Help: Fix typos in 3.29 docs
31fb693d06 Help: Fix typos and grammar in pre-3.29 docs
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !9353
2024-03-19 10:10:16 -04:00
Craig Scott
31fb693d06
Help: Fix typos and grammar in pre-3.29 docs
2024-03-19 21:47:21 +11:00
Brad King
6671f17f65
ctest: Add explicit options for TLS version
...
Add a dedicated `TLSVersion` ctest option and a `CTEST_TLS_VERSION`
variable to control it.
Issue: #25701
2024-03-12 10:46:23 -04:00
Brad King
0aba13a2f3
ctest: Add explicit options for TLS server verification
...
Add a dedicated `TLSVerify` ctest option and a `CTEST_TLS_VERIFY`
variable to control it. Deprecate `CurlOptions` because it exposes
internal implementation details.
2024-03-12 10:46:11 -04:00
Brad King
9e5b954adb
Help: Format ctest(1) CurlOptions values as a definition list
2024-03-12 10:43:37 -04:00
Brad King
89e99cca63
Merge topic 'ctest-j-default'
...
5de1e21659 ctest: Allow passing -j without value to choose a contextual default
bbcbcff7d9 cmCTestMultiProcessHandler: Modernize member initialization
7457b474a1 Tests: Remove unnecessary parallel suppression from CTestCoverageCollectGCOV
ae69801d96 Tests: Convert CTestTestSkipReturnCode to RunCMake.ctest_test case
30dda49416 Tests: Convert CTestTestSerialOrder to RunCMake.ctest_test case
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Acked-by: scivision <michael@scivision.dev >
Merge-request: !9315
2024-03-11 10:18:50 -04:00
Brad King
04d8bc6bb9
Merge topic 'ctest-j-default' into release-3.29
...
5de1e21659 ctest: Allow passing -j without value to choose a contextual default
bbcbcff7d9 cmCTestMultiProcessHandler: Modernize member initialization
7457b474a1 Tests: Remove unnecessary parallel suppression from CTestCoverageCollectGCOV
ae69801d96 Tests: Convert CTestTestSkipReturnCode to RunCMake.ctest_test case
30dda49416 Tests: Convert CTestTestSerialOrder to RunCMake.ctest_test case
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Acked-by: scivision <michael@scivision.dev >
Merge-request: !9315
2024-03-11 10:18:49 -04:00
Brad King
4905335776
Merge topic 'ctest-tests-from-file'
...
170ec48601 Help: Improve ctest tests-from-file documentation wording and wrapping
1a4837641e ctest: Remove unnecessary and ambiguous tests-from-file comment syntax
d52c66bfb3 ctest: Honor tests-from-file options with empty input
8673264e25 Tests: Make ctest tests-from-file expected output more precise
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !9322
2024-03-11 10:17:00 -04:00
Brad King
5de1e21659
ctest: Allow passing -j without value to choose a contextual default
...
Under job server integration, added by commit 80fe56c481 (ctest: Add
support for running under a make job server on POSIX systems,
2023-11-15, v3.29.0-rc1~324^2), use a very high default so that
parallelism is effectively limited only by available job server tokens.
Otherwise, choose a default limit based on the number of processors.
Also allow passing `0` to specify unbounded parallelism.
Fixes : #25739
2024-03-10 11:41:39 -04:00
Brad King
170ec48601
Help: Improve ctest tests-from-file documentation wording and wrapping
2024-03-08 16:26:12 -05:00
Brad King
1a4837641e
ctest: Remove unnecessary and ambiguous tests-from-file comment syntax
...
Test names can contain `#`. Since we ignore lines that do not match any
test names anyway, "commenting" can still work without explicit syntax.
Also drop whitespace trimming for similar reasons.
Fixes : #25741
2024-03-08 16:25:33 -05:00
Brad King
434fe8a34b
file(DOWNLOAD|UPLOAD): Add CMAKE_TLS_VERSION environment variable
...
Issue: #25701
2024-02-28 08:40:27 -05:00
Brad King
fb9a6cf909
file(DOWNLOAD|UPLOAD): Add CMAKE_TLS_VERSION variable
...
Issue: #25701
2024-02-28 08:40:27 -05:00
Brad King
7f1bdcc714
Merge topic 'vs-UseDebugLibraries'
...
721d8b192a VS: Add UseDebugLibraries to vcxproj files by default
47136b6959 VS: Suppress more MSBuild defaults affected by UseDebugLibraries
82a174182a cmVisualStudioGeneratorOptions: Add UsingDebugRuntime method
f498032141 cmVisualStudioGeneratorOptions: Rename {IsDebug => UsingDebugInfo}
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !9275
2024-02-23 08:35:04 -05:00
Brad King
721d8b192a
VS: Add UseDebugLibraries to vcxproj files by default
...
Use heuristics to select a reasonable value. Add policy CMP0162
to provide compatibility with existing projects.
Fixes : #25327
2024-02-22 08:43:16 -05:00
Brad King
14ed766e12
Merge topic 'preset-includes-macro-expansion'
...
1a38ffc656 presets: Expand more macros in the `include` directive
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !9108
2024-02-22 08:32:10 -05:00
Cristian Le
1a38ffc656
presets: Expand more macros in the include directive
...
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de >
2024-02-21 13:47:08 -05:00
Brad King
b814641444
VS: Add [CMAKE_]VS_USE_DEBUG_LIBRARIES options to control UseDebugLibraries
...
This indicates to MSBuild which configurations are considered debug
configurations. This is useful for reference both by humans and tools.
Issue: #25327
2024-02-19 10:40:41 -05:00
Robert Maynard
879690ba14
GeneratorExpression: Add $<QUOTE> generator expression
...
Support inserting '"' literals in generator expressions
Fixes #20869
2024-02-14 14:23:18 -05:00
Alan Phipps
9ba0a54554
TIClang: Add support for TI Clang-based compilers, including tiarmclang
...
Add TIClang compiler ID and support in compiler modules. Update
documentation. Add rudimentary RunCMake test for TIClang to test
basic functionality.
Fixes : #24619
2024-02-09 15:54:40 -05:00
Orkun Tokdemir
ccaf529c4e
Autogen: Update Documentation
...
* Add Qt 6 to documentation
* Add explanation about `<ORIGIN>_autogen_timestamp_deps`
Fixes : #25201
2024-02-08 09:16:37 -05:00
Silvio Traversaro
06af18b9db
cmake: Allow CMAKE_INSTALL_PREFIX to be set by environment variable
...
Fixes : #25023
2024-01-30 11:44:45 -05:00
Craig Scott
339ae33e55
CPack: Change CPACK_PRODUCTBUILD_DOMAINS default to true (CMP0161)
...
Fixes : #23351
2024-01-28 21:09:12 +11:00
Brad King
d9b9f63083
Merge topic 'ctest-tests-from-file'
...
701029726f ctest_test: add options INCLUDE_FROM_FILE and EXCLUDE_FROM_FILE
dbacc1d5a8 ctest: add command line option to exclude tests listed in a given file
022f20f663 ctest: add command line option to run the tests listed in a given file
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Alex <leha-bot@yandex.ru >
Merge-request: !9128
2024-01-26 10:14:58 -05:00
Alex Neundorf
dbacc1d5a8
ctest: add command line option to exclude tests listed in a given file
...
Add `--exclude-from-file <filename>` to exclude the tests listed in the
given file.
Issue: #25455
2024-01-25 12:37:56 -05:00
Alex Neundorf
022f20f663
ctest: add command line option to run the tests listed in a given file
...
Add `--tests-from-file <filename>` to run only the tests listed in the
given file. The test names must match exactly, no regexps or something.
The listed tests can still be filtered with a regexp using -R.
Issue: #25455
2024-01-25 12:37:16 -05:00
Brad King
73b76563fb
Merge topic 'validate_read-only_target_properties'
...
0cfd8fe8ad cmTarget: Don't allow setting read-only properties
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !9133
2024-01-24 08:39:09 -05:00
Robert Maynard
0cfd8fe8ad
cmTarget: Don't allow setting read-only properties
...
Ensure that all documented read-only target properties now produce
errors when trying to set.
2024-01-23 08:50:38 -05:00
Brad King
c75047709f
Merge topic 'autogen-exe-per-config'
...
596e84b0d5 NinjaMultiConfig: Update tests for the new dependency change
7c39dabdbc Autogen: AUTO*_EXECUTABLE: add support for per-config values
Acked-by: Kitware Robot <kwrobot@kitware.com >
Tested-by: buildbot <buildbot@kitware.com >
Merge-request: !8919
2024-01-18 09:01:17 -05:00
Orkun Tokdemir
7c39dabdbc
Autogen: AUTO*_EXECUTABLE: add support for per-config values
...
* Per-config values were added to `AUTO*_EXECUTABLE`.
* Dependency order was refactored for `cmake_autogen` and `cmake_autorcc` to avoid unnecessary rebuilds.
* A new parameter was added for `cmake_autogen` and `cmake_autorcc` to specify the config name of the `auto*_executable` to be used.
* Add `AUTOGEN_BETTER_GRAPH_MULTI_CONFIG` target property to change the behavior of the dependency graph.
* The timestamp target is split into three targets for per-config to avoid redundant `mocs_compilation` builds when `AUTOGEN_BETTER_GRAPH_MULTI_CONFIG` is ON
* Per-config `DEP_FILE_RULE_NAME` values were added to `AutogenInfo.json` for `Multi-Config` usage.
* Some functions were refactored to avoid code duplication.
This commit reimplements fddd0f0443
Fixes : #20074
2024-01-17 16:02:58 +01:00
Brad King
c6d69d84db
Merge topic 'file-strings-regex-match'
...
fa00928bcd file: `STRINGS` + `REGEX` store match results
ff0085cf74 Help: Drop incorrect versionadded mark from CMAKE_MATCH_<n>
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !9124
2024-01-11 10:07:48 -05:00