Peter Kokot
40d68b5087
Help: Add links to FeatureSummary module
2024-12-25 17:32:04 +01:00
Brad King
29385c20e6
Merge topic 'Help-WHOLE_ARCHIVE-clarification'
...
7baf4a9aeb Help: LINK_LIBRARY:WHOLE_ARCHIVE clarification
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !10115
2024-12-19 13:32:59 -05:00
Brad King
c8c1c9beb8
Merge branch 'release-3.31'
2024-12-19 10:50:21 -05:00
Marc Chevrier
7baf4a9aeb
Help: LINK_LIBRARY:WHOLE_ARCHIVE clarification
...
Fixes : #26540
2024-12-19 16:41:50 +01:00
Brad King
41abd532b6
CMake 3.31.3
2024-12-19 10:18:19 -05:00
Brad King
4e119c1d7c
Merge topic 'try_run_cache'
...
9be6e42499 Help: Note try_compile/try_run caching
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !10108
2024-12-19 08:32:59 -05:00
scivision
9be6e42499
Help: Note try_compile/try_run caching
2024-12-18 10:04:47 -05:00
Brad King
5c7bb0bfd9
Merge topic 'rename-cmakelists'
...
fcbc883fa3 cmake: Allow configuration of default script names
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Acked-by: scivision <michael@scivision.dev >
Merge-request: !10059
2024-12-18 08:49:58 -05:00
Martin Duffy
fcbc883fa3
cmake: Allow configuration of default script names
...
Adds the ``--project-file`` command-line option to modify the default script
name loaded by CMake and ``add_subdirectory`` to values other than
``CMakeLists.txt``.
Fixes : #21570
2024-12-17 12:47:02 -05:00
Brad King
e483d7fb57
Merge topic 'ctest-invalid-arg'
...
30dded462a Help: Add 3.30 release note for error on unknown arguments to ctest
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !10106
2024-12-17 10:54:55 -05:00
Brad King
f27ba9768b
Merge topic 'ctest-invalid-arg' into release-3.31
...
30dded462a Help: Add 3.30 release note for error on unknown arguments to ctest
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !10106
2024-12-17 10:54:53 -05:00
Brad King
2264356ebf
Merge topic 'doc-buildsystem-binary-targets'
...
be0b837e2b Help: Fix cmake-buildsystem(7) internal link
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !10105
2024-12-17 10:44:37 -05:00
Brad King
30dded462a
Help: Add 3.30 release note for error on unknown arguments to ctest
...
This was left out of commit 304396d13c (ctest: Show error on invalid
ctest arguments, 2024-04-03, v3.30.0-rc1~286^2).
Fixes : #26539
2024-12-17 10:32:05 -05:00
Brad King
6f3ec4a341
Merge topic 'GenEx-PATH-NATIVE_PATH'
...
427be46424 GenEx $<PATH>: Add NATIVE_PATH sub-command.
Acked-by: Kitware Robot <kwrobot@kitware.com >
Tested-by: buildbot <buildbot@kitware.com >
Merge-request: !10087
2024-12-17 10:13:16 -05:00
Brad King
135e6feba9
Merge topic 'find-cps'
...
d00201afd6 Tests: Add tests for CPS find_package
65429611b9 find_package: Fix handling of relative paths in CPS
5236984a08 Help: Describe CPS support in find_package
34828650d6 find_package: Add experimental gate for CPS support
25cc83428e find_package: Actually import .cps files
91c31ada23 find_package: Actually find .cps files
b89e43b2bc find_package: Start implementing CPS search
3e9f96079d Add additional string case functions
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !10018
2024-12-17 10:12:24 -05:00
Brad King
be0b837e2b
Help: Fix cmake-buildsystem(7) internal link
...
Fix a broken link from commit 987f3fa4e0 (Help: Add cmake-buildsystem(7)
subsections for each binary target type, 2024-12-12).
2024-12-17 10:08:33 -05:00
Brad King
ef1300749c
Merge topic 'ci-linkcheck'
...
25b25a7724 Help: Update link to UTF-8 RFC 3629
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !10103
2024-12-17 10:07:47 -05:00
Brad King
25b25a7724
Help: Update link to UTF-8 RFC 3629
...
The old link now returns 404.
2024-12-16 09:20:23 -05:00
Brad King
546be3530a
Merge topic 'xcode-scheme-lldb-init-file'
...
419cfe30d0 Xcode: Support for 'LLDB Init File' scheme property
65ad1bbd4c vim: Remove duplicated keywords from cmake.vim
a96d6a98d3 Tests/RunCMake/XcodeProject: Improve XcodeSchemaProperty failure messages
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !10093
2024-12-16 09:08:56 -05:00
Brad King
a72262644e
Merge topic 'doc-LINK_WHAT_YOU_USE'
...
e4cd54dab2 Help: Clarify intended purpose of LINK_WHAT_YOU_USE
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !10101
2024-12-16 09:06:41 -05:00
Brad King
ed8180f2eb
Merge topic 'debugger-working-directory'
...
7bf07baccf Help: Fix indentation of DEBUGGER_WORKING_DIRECTORY
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !10099
2024-12-16 09:06:02 -05:00
Timothy Finnegan
427be46424
GenEx $<PATH>: Add NATIVE_PATH sub-command.
...
Implements the generator expression $<PATH:MATIVE_PATH> which convert
path(s) into a native format with platform-specific slashes (``\`` on
Windows hosts and ``/`` elsewhere).
Fixes : #26515
2024-12-14 11:16:47 +01:00
Brad King
e4cd54dab2
Help: Clarify intended purpose of LINK_WHAT_YOU_USE
...
Avoid implying that it can be used to intentionally link to
shared libraries whose symbols are not needed.
Issue: #26529
2024-12-13 10:53:54 -05:00
Garrett Campbell
7bf07baccf
Help: Fix indentation of DEBUGGER_WORKING_DIRECTORY
...
In commit 9ed178f9d8 (Add generator-agnostic DEBUGGER_WORKING_DIRECTORY
target property, 2024-12-05) the documentation was incorrectly indented.
Issue: #16478
2024-12-13 10:10:13 -05:00
Brad King
987f3fa4e0
Help: Add cmake-buildsystem(7) subsections for each binary target type
...
Re-organize the "Binary Targets" section of the manual to have a
dedicated subsection for each kind of binary target. Initialize each
subsection by documenting the object file and link semantics of the
corresponding target type.
2024-12-13 09:53:26 -05:00
Matthew Woehlke
5236984a08
Help: Describe CPS support in find_package
...
Update find_package documentation to describe (the current state of)
support for Common Package Specification packages. Make some general
improvements to the same while we're at it. Add documentation blurb for
the experimental flag that enables CPS support.
2024-12-13 08:58:24 -05:00
Matthew Woehlke
b89e43b2bc
find_package: Start implementing CPS search
...
Teach find_package to search CPS search paths, and to look for CPS file
names. Modify the set of file names to also include the file type (CPS
or CMake-script). Modify the search function to allow specifying which
file type(s) to consider.
During full path search, each possible path is searched for only one of
the two possible file types. However, subsequent runs, or when
considering a user-specified path (<name>_DIR), CMake will look for both
file types.
Note that this only adds the new path search logic as described above;
CMake does not yet know how to read CPS files, and there is a high
likelihood that Bad Things will happen if it tries. However, this seemed
like a good place to checkpoint.
2024-12-13 08:58:24 -05:00
Cristiano Carvalheiro
419cfe30d0
Xcode: Support for 'LLDB Init File' scheme property
...
Fixes : #24002
2024-12-13 08:31:11 -05:00
Brad King
85f4fdc000
Merge topic 'debugger-working-directory'
...
0a9fb88121 fileapi: Report DEBUGGER_WORKING_DIRECTORY in codemodel-v2 target objects
9ed178f9d8 Add generator-agnostic DEBUGGER_WORKING_DIRECTORY target property
200efab4d4 Tests/RunCMake/FileAPI: Improve error on unexpected line numbers
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !10075
2024-12-11 09:47:03 -05:00
Matthew Woehlke
b4704d3ef8
Help/dev: Improve coding conventions guide
...
Improve the coding conventions specified in our source code guide:
- Recommend capitalization for locals as well as members.
- Remove exceptions for `const` placement; new code should always prefer
"east" style.
- Remove separate section; "Code Style" and "Code Conventions" are
similar enough to not need to make a distinction.
2024-12-10 14:18:08 -05:00
Garrett Campbell
0a9fb88121
fileapi: Report DEBUGGER_WORKING_DIRECTORY in codemodel-v2 target objects
...
Closes : #16478
2024-12-10 09:04:31 -05:00
Evan Wilde
e1d635e71c
Swift: Expand generator expressions in Swift_MODULE_DIRECTORY
...
This patch makes the `Swift_MODULE_DIRECTORY` property behave more like
the other output directory properties, allowing generator expressions
and fixing the behavior with multi-config generators.
Issue: #26010
2024-12-09 10:37:05 -08:00
Garrett Campbell
9ed178f9d8
Add generator-agnostic DEBUGGER_WORKING_DIRECTORY target property
...
Generalize the `VS_DEBUGGER_WORKING_DIRECTORY` property.
Issue: #16478
2024-12-09 10:47:10 -05:00
Brad King
24d97da543
Help/dev: Add some coding conventions to source code guide
2024-12-06 14:07:32 -05:00
Brad King
bed97ced45
Merge branch 'release-3.31'
2024-12-05 09:12:51 -05:00
Brad King
793c5f11f6
CMake 3.31.2
2024-12-05 08:42:47 -05:00
Dan Walsh
a4fc66bb71
Help: Clarify documentation of VS_PROJECT_IMPORT
...
Also add an example.
2024-12-04 10:45:19 -05:00
SunBlack
ae63ce80a1
Help: Suggest target_compile_features as alternative to CXX_STANDARD_REQUIRED
2024-12-03 12:36:21 +01:00
Brad King
14ed8464c8
Merge topic 'ARCHIVER-prefix'
...
a4ff2b01e3 IntelLLVM-Windows: add definitions for ARCHIVER: prefix
521a6d409c Archive library: Add support for ARCHIVER: prefix
Acked-by: Kitware Robot <kwrobot@kitware.com >
Tested-by: buildbot <buildbot@kitware.com >
Merge-request: !10038
2024-11-28 09:22:38 -05:00
Brad King
bf37d5f93a
Merge topic 'tutorial-step-7-todo-4'
...
dccf2bdb75 Tutorial: Restore TODO 4 comment in step 7
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Acked-by: Betsy McPhail <betsy.mcphail@kitware.com >
Merge-request: !10045
2024-11-28 09:19:01 -05:00
Brice Decaestecker
dccf2bdb75
Tutorial: Restore TODO 4 comment in step 7
...
Restore a comment added by commit f9ef15f3dc (Tutorial: Update step 7
style, 2022-10-07, v3.26.0-rc1~482^2) that was accidentally removed by
commit 8ddf32196c (Tutorial: Refactor MathFunctions code, 2023-02-10,
v3.27.0-rc1~441^2).
2024-11-27 09:28:34 -05:00
Brad King
8a0ebc29da
Merge topic 'FeatureSummary-condition-syntax'
...
6a7d5e414d FeatureSummary: Introduce policy CMP0183 for full Condition Syntax
Acked-by: Kitware Robot <kwrobot@kitware.com >
Tested-by: buildbot <buildbot@kitware.com >
Merge-request: !10031
2024-11-27 09:08:29 -05:00
Brad King
0afe2f12f6
Merge topic 'FindGDAL-deprecate'
...
7e2aee4458 FindGDAL: Document as deprecated in favor of upstream CMake package
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !10040
2024-11-27 09:06:19 -05:00
Brad King
75c8b0202e
Merge topic 'find_package_version_range_limitation'
...
041537e5ce Help: Clarify find_package version range limitation
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !10041
2024-11-27 09:03:39 -05:00
Marc Chevrier
521a6d409c
Archive library: Add support for ARCHIVER: prefix
...
Add the support of the ARCHIVER: prefix to offer a portable way to pass
options to the archiver when the compiler is used as driver.
2024-11-26 19:26:07 +01:00
Peter Kokot
6a7d5e414d
FeatureSummary: Introduce policy CMP0183 for full Condition Syntax
...
Closes : #26468
2024-11-26 13:19:25 -05:00
SunBlack
7e2aee4458
FindGDAL: Document as deprecated in favor of upstream CMake package
...
Issue: #26471
2024-11-26 13:13:20 -05:00
SunBlack
041537e5ce
Help: Clarify find_package version range limitation
...
Issue: #26470
2024-11-26 09:25:15 -05:00
Nuno Nobre
ae33faa330
Help/prop_dir/EXCLUDE_FROM_ALL: Minor wording fix
2024-11-25 16:35:25 -05:00
Brad King
508817037d
Merge topic 'aix-archive-shared-libraries'
...
2c22aae14b Tests/RunCMake: Enable CMP0182 in test cases on AIX
5c78623143 AIX: Enable shared library archives by default
7a05e8e994 Help: Reword AIX_SHARED_LIBRARY_ARCHIVE to avoid assuming a default
655a245d60 Tests: Explicitly disable AIX_SHARED_LIBRARY_ARCHIVE in some cases
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !10030
2024-11-25 10:07:20 -05:00