Martin Duffy
159ba027b9
Install: Add parallel installation option
...
Fixes : #26000
2024-07-15 11:49:29 -04:00
Juan Ramos
197cb419d1
add_custom_command: Add CODEGEN support
...
By specifying CODEGEN as an argument to add_custom_command the
custom command will be added to a codegen build target.
The intent is to provide a convenient way for users to get
their generated files without having to build the whole project.
This can be helpful for code analysis tools which can be useful
for IDEs and CI.
2024-07-01 12:02:49 -04:00
Asit Dhal
95323c90a1
file(MAKE_DIRECTORY): Add optional RESULT keyword to capture failure.
...
Fixes : #26041
2024-06-24 02:20:43 +02:00
Brad King
60da7cb84e
Merge topic 'doc-add_subdirectory-EXCLUDE_FROM_ALL'
...
2449c04d8d Help: improve docs for the EXCLUDE_FROM_ALL directory property
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !9497
2024-06-06 08:41:59 -04:00
Alex Neundorf
2449c04d8d
Help: improve docs for the EXCLUDE_FROM_ALL directory property
...
This patch improves the wording of the documentation of the
EXCLUDE_FROM_ALL directory property, and makes the
add_subdirectory()- and fetchcontent-documentation refer to it.
2024-06-04 16:58:54 +02:00
Brad King
d1cf2a2206
Merge topic 'file-accept-empty-lists'
...
7c516f7e28 file(): TOUCH, TOUCH_NOCREATE and MAKE_DIRECTORY accept empty lists
Acked-by: Kitware Robot <kwrobot@kitware.com >
Tested-by: buildbot <buildbot@kitware.com >
Merge-request: !9570
2024-06-03 09:08:52 -04:00
Craig Scott
422ab50a8e
Merge topic 'doc-find_package-typical-usage'
...
4b55d56259 Help: Start find_package() docs with a new "Typical Usage" section
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !9567
2024-06-01 18:25:18 -04:00
Brad King
e0a11dfa24
Merge topic 'dep-provider-try_compile'
...
4cb5bb014d try_compile: Propagating top level includes into whole-project calls
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Robert Maynard <robertjmaynard@gmail.com >
Merge-request: !9532
2024-05-31 09:20:27 -04:00
Craig Scott
7c516f7e28
file(): TOUCH, TOUCH_NOCREATE and MAKE_DIRECTORY accept empty lists
...
Projects may be generating a list of files or directories to pass as arguments
to file(TOUCH), file(TOUCH_NOCREATE), or file(MAKE_DIRECTORY). Those
lists might end up being empty, so rather than requiring at least one item,
allow an empty list.
Fixes : #24897
2024-05-31 22:55:20 +10:00
Craig Scott
4b55d56259
Help: Start find_package() docs with a new "Typical Usage" section
...
Fixes : #22680
2024-05-31 16:05:23 +10:00
Craig Scott
4cb5bb014d
try_compile: Propagating top level includes into whole-project calls
...
Fixes : #24151
2024-05-30 19:01:03 +10:00
Brad King
645ca62b1b
Merge topic 'doc-macro'
...
67171a99be Help: Fix inaccurate use of "function" in macro docs
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Juan Ramos <juan.ramos@kitware.com >
Merge-request: !9534
2024-05-21 09:17:17 -04:00
Dave Abrahams
67171a99be
Help: Fix inaccurate use of "function" in macro docs
2024-05-21 09:13:57 -04:00
Brad King
d37467e036
Merge topic 'custom-command-output-hash-character'
...
8d2a503c1e add_custom_command: Allow OUTPUT filenames containing a hash '#' character
b38000d774 cmGlobalXCodeGenerator: Re-implement legacy makefile path escaping
d929089687 cmGlobalXCodeGenerator: Do not use legacy makefile escaping in shell commands
d61fc2c52e cmGlobalXCodeGenerator: Migrate legacy makefile path escaping to local helper
6010e007c7 cmState: Add method to check for the Borland Makefiles generator
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !9514
2024-05-16 11:24:56 -04:00
Glenn Coombs
8d2a503c1e
add_custom_command: Allow OUTPUT filenames containing a hash '#' character
...
Most generators now support this character after escaping and quoting
cleanups over time. Disallow it only on generators that do support it.
Fixes : #25604
2024-05-15 13:27:46 -04:00
scivision
fc2bce54c7
Help: try_compile how to pass compiler options
...
it wasn't obvious how to pass compiler options. Since the old
add_definitions() is used we can workaround this by passing
compiler options there.
2024-05-11 22:57:38 -04:00
Juan Ramos
769866163a
Help: Fix cmake_path example
...
Fixes : #25938
2024-04-26 08:49:07 -07:00
Brad King
a4b7a13c23
Merge topic 'doc-genex'
...
263f6b888c Help: Document TARGET_PROPERTY genex handling of transitive properties
f70eb84be7 Help: Clarify role of TARGET_NAME generator expression
36145e2680 Help: Organize target-dependent generator expressions into subsections
50eadd794e Help: Clarify cross-references to target-dependent generator expressions
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !9460
2024-04-25 11:25:30 -04:00
Brad King
50eadd794e
Help: Clarify cross-references to target-dependent generator expressions
2024-04-25 10:49:16 -04:00
Brad King
2c3a9d5385
Merge topic 'help.file'
...
d2d2ffe1c1 Help: file: document GET_RUNTIME_DEPENDENCIES separately
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Acked-by: Juan Ramos <juan.ramos@kitware.com >
Merge-request: !9456
2024-04-25 10:28:36 -04:00
Joachim Wuttke (h)
d2d2ffe1c1
Help: file: document GET_RUNTIME_DEPENDENCIES separately
...
Moved documentation of file(GET_RUNTIME_DEPENDENCIES ...) from
the 'Reading' section to a separate section at the bottom of
the page. Because it is a very long text, and because this
signature is quite different from all the others in the
'Reading' section.
2024-04-24 15:28:39 +02:00
Brad King
835f34949e
Help: Update cmake-buildsystem(7) build and usage requirements
...
Re-organize the section to explicitly describe target-specific
commands, build properties, and usage requirement properties.
Add builtin transitive properties that have been created since
the document was first written.
2024-04-24 09:06:32 -04:00
Martin Stadler
dc7a810a75
Help: Clarify documentation on regex character classes
...
In particular, give an example of matching `]`.
2024-04-11 08:46:37 -04:00
Craig Scott
97464aa970
enable_language(): Fail if called before project()
...
Fixes : #25550
2024-04-02 23:00:38 +11:00
Brad King
dea9982990
Merge topic 'patch-help-manually-added-dependencies'
...
e722f73e40 Help: Document MANUALLY_ADDED_DEPENDENCIES in add_dependencies
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !9388
2024-04-01 09:42:32 -04: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
bed32f400e
file(DOWNLOAD|UPLOAD): Document TLS_VERSION fallback to environment variable
...
This was missed by commit 434fe8a34b (file(DOWNLOAD|UPLOAD): Add
CMAKE_TLS_VERSION environment variable, 2024-02-26).
2024-03-29 14:17:58 -04:00
Peter Kokot
e722f73e40
Help: Document MANUALLY_ADDED_DEPENDENCIES in add_dependencies
...
This adds a note about the MANUALLY_ADDED_DEPENDENCIES target property
to the add_dependencies documentation page. It was introduced in v3.8.0.
2024-03-29 18:43:30 +01: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
Brad King
bd3eaf83a1
Merge topic 'move-install-note'
...
8cbd6f5754 Help: Fix location of install() note about superseded commands
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !9382
2024-03-29 09:15:11 -04:00
FeRD (Frank Dana)
8cbd6f5754
Help: Fix location of install() note about superseded commands
...
The note regarding commands superseded by install() somehow wound
up nested under the install(EXPORT) signature, when it has nothing
to do with install(EXPORT). Move it to the top level, immediately
before the Examples section.
2024-03-28 16:59:00 -04:00
Juan Ramos
89aac1fbe8
add_dependencies: Document behavior under Ninja generators
...
Closes : #25796
2024-03-28 09:48:08 -07:00
Brad King
cf6083cc6e
Merge topic 'doc-linker-vars'
...
6ba2bbc0f3 Help: Restructure and improve LINKER_TYPE docs
c39bc6e412 Help: CMAKE_<LANG>_USING_LINKER_<TYPE> can be a list of flags
1c7ccefd83 Help: Add custom linker example for CMAKE_<LANG>_USING_LINKER_<TYPE>
aecea7b28b Help: Grammar, typos and wording improvements for linker variables
5b21897c6e Help: Remove stray formatting for try_compile() LINKER_LANGUAGE keyword
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !9362
2024-03-27 08:18:10 -04:00
Craig Scott
5b21897c6e
Help: Remove stray formatting for try_compile() LINKER_LANGUAGE keyword
2024-03-22 20:58:32 +11: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
Brad King
b877fb49ce
Merge topic 'doc-release-3.29-typos' into release-3.29
...
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:15 -04:00
Brad King
6b035118de
Merge topic 'doc-exit-code-range'
...
c980745b82 Help: Specify advisable range for exit code in cmake_language(EXIT)
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !9352
2024-03-19 10:09:20 -04:00
Craig Scott
c980745b82
Help: Specify advisable range for exit code in cmake_language(EXIT)
...
The limitations added here are documented in the bash shell's
reference manual.
2024-03-19 22:37:52 +11:00
Craig Scott
eceb368ccc
Help: Fix typos in 3.29 docs
2024-03-19 21:47:28 +11:00
Brad King
e3a8a6fc0c
Merge topic 'doc-project-include-vars-3.29'
...
dcb894fb00 Help: Update project() code injection for new 3.29 include behavior
09cf39ab07 Help: Improve wording of CMAKE_PROJECT_..._INCLUDE... changes for 3.29
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !9343
2024-03-18 13:59:53 -04:00
Craig Scott
dcb894fb00
Help: Update project() code injection for new 3.29 include behavior
...
Specifically, the various CMAKE_PROJECT_...INCLUDE... variables can
now take a list of things, and those things can be module names
too, not just file names.
2024-03-16 17:43:25 +11:00
Brad King
b7c78e1592
Merge topic 'export-find_dependency-calls'
...
3a739d4dcb EXPORT_PACKAGE_DEPENDENCIES: Add experimental feature gate
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !9336
2024-03-13 10:57:08 -04:00
Brad King
3a739d4dcb
EXPORT_PACKAGE_DEPENDENCIES: Add experimental feature gate
...
Some design concerns have been raised after trying the 3.29 release
candidates. Avoid committing to a stable public interface for now.
Issue: #25767
2024-03-12 14:24:53 -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
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
7d1aae7a60
Merge topic 'Help-add_custom_command-grammo'
...
b03356f954 Help/add_custom_command: fix verb grammo
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !9297
2024-02-29 07:59:28 -05:00
Ben Boeckel
b03356f954
Help/add_custom_command: fix verb grammo
2024-02-28 13:21:52 -05:00
Brad King
c481ddda14
Merge topic 'curl-tls-version'
...
434fe8a34b file(DOWNLOAD|UPLOAD): Add CMAKE_TLS_VERSION environment variable
fb9a6cf909 file(DOWNLOAD|UPLOAD): Add CMAKE_TLS_VERSION variable
8e6776b9f3 file(DOWNLOAD|UPLOAD): Add TLS_VERSION option for https connections
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !9290
2024-02-28 09:03:20 -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
8e6776b9f3
file(DOWNLOAD|UPLOAD): Add TLS_VERSION option for https connections
...
Add an option to specify the minimum allowed TLS version for https
connections.
Issue: #25701
2024-02-28 08:40:14 -05:00