Brad King
f5e8251497
Merge topic 'doc-misc-trivial-cleanups'
...
321eb0c33d Help: Tasking compiler supports compile warning as error
f8b3b24915 Help: Minor grammar, typo and formatting cleanups
3de30134f1 Help: Re-sort property, variable and compiler id lists
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7769
2022-10-11 10:12:04 -04:00
Craig Scott
321eb0c33d
Help: Tasking compiler supports compile warning as error
2022-10-09 13:34:05 +11:00
Craig Scott
f8b3b24915
Help: Minor grammar, typo and formatting cleanups
2022-10-09 13:34:05 +11:00
Craig Scott
3de30134f1
Help: Re-sort property, variable and compiler id lists
2022-10-09 13:34:05 +11:00
Craig Scott
248cfb5b6e
Help: The Xcode generator does not support per-config sources
...
Fixes : #23106
2022-10-08 20:11:25 +11:00
Brad King
a07be2ffd1
Merge topic 'clang-tidy-prefer-p-option'
...
3f4e0839c4 clang-tidy: Don't append compiler commands if using -p
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7753
2022-10-07 11:20:03 -04:00
Craig Scott
3f4e0839c4
clang-tidy: Don't append compiler commands if using -p
...
When the -p option is given to clang-tidy, it doesn't need the compile
command line to be appended. It can get everything it needs from the
compile_commands.json file in the directory specified with the -p option.
When the compiler being used is not the system default compiler,
clang-tidy has been observed to pick up the wrong headers when the
compiler command line is given, but not if only the -p option is used.
Therefore, don't append the compiler command line if -p is present in
the <LANG>_CLANG_TIDY target property.
Fixes : #24017
2022-10-07 10:33:32 -04:00
Brad King
a546a19385
Merge topic 'tutorial_step5_update'
...
92edbce342 Tutorial: Update step 5 style
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !7728
2022-10-07 09:40:16 -04:00
Markus Ferrell
92edbce342
Tutorial: Update step 5 style
2022-10-06 12:08:43 -04:00
Brad King
2133cf2c8e
Merge topic 'try_compile-more-debug-logging'
...
7e6b2a92a0 try_compile: Report build dir with --debug-trycompile
cbf3252975 Tests: Remove stray debugging flag from RunCMake.CheckCompilerFlag case
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7746
2022-10-06 08:45:25 -04:00
Matthew Woehlke
7e6b2a92a0
try_compile: Report build dir with --debug-trycompile
...
When `--debug-trycompile` is enabled, issue a log (with trace) for every
`try_compile` noting what directory is being used for the compilation.
This will make it easier to find the corresponding artifacts.
Closes : #24022
2022-10-06 08:13:03 -04:00
Brad King
b768a5e23b
Help: Disambiguate cmake(1) program modes in Sphinx option references
...
Define the entry point to each mode as an option for the `cmake`
program, but reference the options for that mode as part of stand-in
`cmake-<mode>` programs.
2022-10-05 15:27:40 -04:00
Brad King
1394e8e7c1
Merge branch 'release-3.23'
2022-10-04 14:23:17 -04:00
Brad King
34a6da34b8
CMake 3.23.4
2022-10-04 13:26:33 -04:00
Brad King
5e53164acf
Merge topic 'improve-try_compile-debug-documentation'
...
3801785cc3 Help: Improve try_compile debug documentation
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: alcroito <alexandru.croitor@qt.io >
Merge-request: !7735
2022-10-04 10:28:32 -04:00
Brad King
6755539fca
Merge topic 'fix-try_compile-doc-typo'
...
ef05a56387 Help: Fix typo in try_compile documentation
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7736
2022-10-04 10:27:40 -04:00
Matthew Woehlke
3801785cc3
Help: Improve try_compile debug documentation
...
Update the --debug-trycompile documentation to account for recent
changes to try_compile. Mention where in the build tree to find
artifacts when using said option.
2022-10-03 11:44:58 -04:00
Matthew Woehlke
ef05a56387
Help: Fix typo in try_compile documentation
2022-09-30 15:49:35 -04:00
Matthew Woehlke
0f28653ba9
try_compile: Rename SOURCE_FROM_ARG -> SOURCE_FROM_CONTENT
...
Change the SOURCE_FROM_ARG keyword to try_compile to SOURCE_FROM_CONTENT
(which we can do because it was recently added and hasn't been in a
release yet). The new name should be clearer as to what it does, and
also more consistent with the CONTENT arguments to some other commands.
Also, fix a typo in an error message.
2022-09-30 14:50:25 -04:00
Brad King
cadcb6a5f0
Merge topic 'try_compile-no-cache'
...
09b3051524 try_compile: Add NO_CACHE option (also try_run)
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !7723
2022-09-29 07:59:02 -04:00
Brad King
beb4f5df47
Merge topic 'tutorial_step4_update'
...
37fceb6fd3 Tutorial: Update step 4 style
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !7646
2022-09-29 07:54:05 -04:00
Matthew Woehlke
09b3051524
try_compile: Add NO_CACHE option (also try_run)
...
Add NO_CACHE option to try_compile and try_run, which places the results
in regular, rather than cache, variables.
Issue: #22799
2022-09-28 13:41:11 -04:00
Markus Ferrell
37fceb6fd3
Tutorial: Update step 4 style
2022-09-28 11:38:28 -04:00
Brad King
43a0206dad
Merge topic 'vs11-deprecate'
...
6c1337cb79 Deprecate Visual Studio 11 2012 generator
5faf145a5b Tests: Drop unused files from RunCMake.CommandLine
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7720
2022-09-28 10:40:32 -04:00
Brad King
b9968f3006
Merge topic 'cmake-presets-workflow'
...
374d82bbcd cmake: Add --workflow mode
e316812884 CMakePresets.json: Add workflow presets to schema
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !7711
2022-09-28 10:38:41 -04:00
Brad King
6c1337cb79
Deprecate Visual Studio 11 2012 generator
...
Update documentation to mark the generator deprecated. Add a warning at
the end of generation plus an option to turn off the warning.
2022-09-27 11:45:50 -04:00
Kyle Edwards
374d82bbcd
cmake: Add --workflow mode
...
Fixes : #23118
2022-09-27 11:09:06 -04:00
Brad King
164a156c7c
Merge topic 'remove-vs10-generator'
...
8d6f015d59 Drop Visual Studio 10 2010 generator
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7718
2022-09-27 10:32:11 -04:00
Brad King
50b668ddc8
Merge topic 'add_subdirectory_system'
...
2eb30a7036 add_subdirectory: Add SYSTEM option
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7399
2022-09-27 10:28:49 -04:00
Brad King
954b861dba
Merge topic 'cpack-nsis-arguments-command-line'
...
d1613ac880 CPack/NSIS: Add options to set makensis arguments
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7715
2022-09-27 10:26:12 -04:00
Brad King
8d6f015d59
Drop Visual Studio 10 2010 generator
...
This generator has been deprecated since CMake 3.22. Remove it.
2022-09-26 15:43:04 -04:00
Johnny Jazeix
d1613ac880
CPack/NSIS: Add options to set makensis arguments
...
Fixes : #23446
2022-09-26 17:58:12 +02:00
Da Quexian
2eb30a7036
add_subdirectory: Add SYSTEM option
...
Fixes : #22401
Signed-off-by: Da Quexian <daquexian566@gmail.com >
2022-09-26 10:56:54 -04:00
Brad King
eb6e2ef7f6
Merge topic 'doc-typo-fix'
...
e34f543678 Help/CPACK_START_MENU_SHORTCUTS: fix monospace markup
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7714
2022-09-26 09:39:44 -04:00
Brad King
d497b06ee9
Merge topic 'cmake-presets-package-more-doc-fixes'
...
33b1338a92 Tests: Add test for --list-presets=all
4328deb618 Tests: Add test for cpack --list-presets
e909384062 Help: Add package preset to example presets file
16a24b0ab0 Help: List packagePresets field in cmake-presets.7
Acked-by: Kitware Robot <kwrobot@kitware.com >
Tested-by: buildbot <buildbot@kitware.com >
Merge-request: !7707
2022-09-26 09:38:54 -04:00
Ben Boeckel
e34f543678
Help/CPACK_START_MENU_SHORTCUTS: fix monospace markup
2022-09-23 15:50:51 -04:00
Brad King
98aef0929f
Merge topic 'try_compile-source-from'
...
611d801790 try_compile: Add SOURCE_FROM_FILE
a04eaf6742 Tests: Clean up and simplify TryCompile tests
cb14ae2b87 try_compile: Add SOURCE_FROM_{ARG,VAR}
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !7700
2022-09-23 08:52:13 -04:00
Kyle Edwards
e909384062
Help: Add package preset to example presets file
2022-09-22 16:24:38 -04:00
Kyle Edwards
16a24b0ab0
Help: List packagePresets field in cmake-presets.7
2022-09-22 16:14:01 -04:00
Matthew Woehlke
611d801790
try_compile: Add SOURCE_FROM_FILE
...
Add ability to copy try_compile (and try_run) source files from
arbitrary locations into the operation directory. This is included for
the sake of completion and consolidation, although use cases which
actually require this may be rare.
2022-09-22 14:56:50 -04:00
Matthew Woehlke
cb14ae2b87
try_compile: Add SOURCE_FROM_{ARG,VAR}
...
Add ability to "feed" try_compile (and try_run) sources more directly,
either from literal content, or from a CMake variable which contains
literal content. This saves the user from needing a separate step to
write the content to a file, and allows for the sources to only exist in
the scratch directory.
2022-09-22 13:33:27 -04:00
Marc Chevrier
0bd3efffbc
Genex LINK_LIBRARY: Add support for framework with postfix
2022-09-21 16:14:36 +02:00
Brad King
fc17277bda
Merge topic 'detect-lib_foo.a-msvc'
...
be848a71b0 MSVC: Teach find_library to consider the 'libfoo.a' naming convention
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7694
2022-09-20 09:12:57 -04:00
Hinell
37381506dc
Help: Link from add_custom_target to policy on BYPRODUCTS
...
Link policy explaining BYPRODUCTS.
Apply the change from commit 00b788e85e (Help:custom_command: link
policy on BYPRODUCTS, 2022-09-09) to `add_custom_target` docs too.
Issue: #23786
2022-09-19 12:39:29 -04:00
Yonggang Luo
be848a71b0
MSVC: Teach find_library to consider the 'libfoo.a' naming convention
...
When targeting the GNU ABI, we consider `.a` libraries first but also
accept `.lib`. For symmetry, when targeting the MSVC ABI, we now
consider `.lib` first but also accept `.a`.
This adds support for meson-generated static libraries, which are named
with the pattern `lib${foo}.a`:
* https://mesonbuild.com/FAQ.html#why-does-building-my-project-with-msvc-output-static-libraries-called-libfooa
Fixes : #23975
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com >
2022-09-19 11:02:44 -04:00
Brad King
71cfcbe816
Merge topic 'transitive-usage-reqs-lnks'
...
3d31f99b74 Help: Link from usage requirement commands to detailed explanation
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7653
2022-09-19 10:24:15 -04:00
Brad King
e9d9cd348c
Merge topic 'help-add-custom-comman-byproducts'
...
00b788e85e Help:custom_command: link policy on BYPRODUCTS
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7662
2022-09-19 10:23:02 -04:00
Brad King
f485e2c65b
Merge topic 'env-tls-certs'
...
10bf34a2d9 cmCurl: Honor OpenSSL certificate environment variables
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7670
2022-09-19 10:21:22 -04:00
Hinell
3d31f99b74
Help: Link from usage requirement commands to detailed explanation
...
Augment vague mentions of "Transitive Usage Requirements" with links to
a detailed explanation.
Fixes : #23799
2022-09-16 10:54:27 -04:00
Hinell
00b788e85e
Help:custom_command: link policy on BYPRODUCTS
...
Link policy explaining BYPRODUCTS.
Fixes : #23786
2022-09-16 10:50:46 -04:00