Brad King
eda68d229d
Merge topic 'cmake-E-copy-t-mode'
...
8d9069e5b6 cmake -E copy: Add support for -t argument
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7913
2022-11-15 09:14:07 -05:00
Kyle Edwards
8d9069e5b6
cmake -E copy: Add support for -t argument
...
Fixes : #23543
2022-11-15 07:47:07 -05:00
friendlyanon
59573bf5b9
project: Warn at top-level if cmake_minimum_required wasn't called
...
The top-level project() call will now issue an AUTHOR_WARNING if it
wasn't called after cmake_minimum_required().
Fixes : #24071
2022-11-11 22:49:36 +01:00
Ilia K
3166547cf6
ASM_MARMASM: Add support for Microsoft ARM assembler language
...
https://learn.microsoft.com/en-us/cpp/assembler/arm/arm-assembler-reference
Fixes : #23999
2022-11-09 10:22:46 -05:00
Brad King
16cb04dbe9
Merge topic 'file-set-file-api'
...
b3e9fb67bb file-api: support exporting file set information
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !7867
2022-11-09 09:34:40 -05:00
Brad King
9758dbd9d4
Merge topic 'use_folders_on_by_default'
...
d3acd22380 USE_FOLDERS: Treat as on by default
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Amir Masoud Abdol <amirmasoudabdol@icloud.com >
Merge-request: !7830
2022-11-08 14:28:21 -05:00
Ben Boeckel
b3e9fb67bb
file-api: support exporting file set information
...
This includes listing the filesets themselves as well as which file set
(if any) each source file is associated with.
Fixes : #24128
2022-11-08 10:07:10 -05:00
Juan Ramos
d3acd22380
USE_FOLDERS: Treat as on by default
...
Add a policy to treat the `USE_FOLDERS` global property as ON by default
if it is not set.
Fixes : #21695
2022-11-08 09:32:18 -05:00
Alois Klink
8c6b2928f4
ExternalProject: Add INSTALL_BYPRODUCTS option
...
Add an `INSTALL_BYPRODUCTS` option to `ExternalProject_Add` that can
be used to declare that files are `BYPRODUCTS` of the ExternalProject
install step.
This is often required by the Ninja generator to explicitly declare
dependencies. Previously, many users used `BUILD_BYPRODUCTS`, even if
their files were created by the install step, not the build step.
This commit essentially just copies the code for `BUILD_BYPRODUCTS`.
Fixes : #24120
Fixes : #23056
2022-11-05 16:26:45 +00:00
Ben Boeckel
887a8874c3
EXPORT_COMPILE_COMMANDS: add output field
...
Also write for all configurations from multi-config generators.
This field was added in the Clang 5 documentation and not present in the
Clang 4 documentation (sometime between Dec 2016 and Mar 2017 according
to `web.archive.org`).
2022-10-28 13:54:43 -04:00
Vasiliy Koyrev
9da542d5c1
string(TIMESTAMP): Add %z and %Z for adding time zone string
...
Fixes : #24056
2022-10-27 11:13:46 -04:00
Brad King
c6fa5f7a70
Merge topic 'trace-try_compile'
...
5ba51621af try_compile: Propagate --trace through try_compile
Acked-by: Kitware Robot <kwrobot@kitware.com >
Tested-by: buildbot <buildbot@kitware.com >
Merge-request: !7757
2022-10-17 10:09:43 -04:00
Marc Chevrier
989b469f1c
UseSWIG: Add support of perl5 language
2022-10-14 16:46:42 +02:00
Matthew Woehlke
5ba51621af
try_compile: Propagate --trace through try_compile
...
Add ability to specify another cmake instance from which to get the
trace output target. Use this during try_compile.
2022-10-11 12:10:18 -04:00
Brad King
7629a1182c
Begin post-3.25 development
2022-10-11 11:16:01 -04:00
Brad King
e4a53a50eb
Help: Drop development topic notes to prepare release
...
Release versions do not have the development topic section of
the CMake Release Notes index page.
2022-10-11 11:12:07 -04:00
Brad King
c174ef23f4
Help: Consolidate 3.25 release notes
...
Run the `Utilities/Release/consolidate-relnotes.bash` script to move
notes from `Help/release/dev/*` into `Help/release/3.25.rst`.
2022-10-07 11:23:58 -04: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
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
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
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
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
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
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
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
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
Brad King
ed8e860998
Merge topic 'xcode-lib-dirs'
...
d4cc39842e Xcode: Do not append per-config suffixes to library search paths
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7672
2022-09-16 10:25:14 -04:00
Maxim Cournoyer
10bf34a2d9
cmCurl: Honor OpenSSL certificate environment variables
...
Honor the OpenSSL environment variables used to specify the location of
the TLS certificates, as specified in the `curl(1)` man page.
Co-authored-by: Ludovic Courtès <ludo@gnu.org >
2022-09-16 09:40:28 -04:00
Mikko Sivulainen
d4cc39842e
Xcode: Do not append per-config suffixes to library search paths
...
Add policy `CMP0142` to remove the automatic addition of the
`$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)` suffix in a compatible way.
Fixes : #21757
2022-09-15 10:27:23 -04:00
Brad King
01a25d72c6
Merge topic 'add_tasking_compiler'
...
94df5b6ef1 Tasking: Add support for several compiler toolsets
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7491
2022-09-15 09:19:58 -04:00
Christoph Seitz
94df5b6ef1
Tasking: Add support for several compiler toolsets
...
Add support for the Tasking compiler toolset:
* TriCore Compiler Toolset 6.3 (with TriCore, ARM, MCS,
8051 and PCP architecture compilers)
* SmartCode Compiler Toolset 10.1 (with TriCore, ARC, MCS,
8051 architecture compilers)
* ARM Compiler 6.0
* MCS Complier 3.3
* 8051 Compiler 7.2
Fixes : #23756
2022-09-14 09:58:50 -04:00
Brad King
c3e68020d6
Merge topic 'MsvcDebugInformationFormatAbstraction'
...
a858466aac MSVC: Add test for debug information format
0e96a20478 MSVC: Add abstraction for debug information format
d4c8111da4 Clang/Windows: Clarify name of internal runtime library flags variables
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7606
2022-09-14 09:21:27 -04:00
Glen Chung
0e96a20478
MSVC: Add abstraction for debug information format
...
Replace our hard-coded default for `/Zi` with a first-class abstraction
to select the debug information format an enumeration of logical
names. We've long hesitated to do this because the idea of "debug
information format" touches on related concepts on several platforms.
Avoid that scope creep by simply defining an abstraction that applies
only when targeting the MSVC ABI on Windows.
Removing the old default flag requires a policy because existing
projects may rely on string processing to edit them and choose a
runtime library under the old behavior. Add policy CMP0141 to
provide compatibility.
Fixes : #10189
2022-09-14 09:12:47 -04:00
Cristian Adam
caffb15d09
LINUX: Set CMAKE_HOST_LINUX variable when running on a Linux host
...
Relates: #23840
2022-09-09 20:10:43 +02:00
Brad King
e71605dfb4
Merge topic 'BSD'
...
1ea8b8ed86 BSD: Set CMAKE_HOST_BSD variable on a BSD host
288f72efea BSD: Only use BSD as variable for target BSD system
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7648
2022-09-09 10:05:41 -04:00
Thomas Weißschuh
5156eb5613
UseSWIG: track generated Perl module files
...
This makes sure the generated file is cleaned properly and allows to
create dependencies on it.
2022-09-08 14:55:46 +02:00
Brad King
ecfc63a9b0
Merge topic 'try_compile-unique-bindir'
...
aa9220d3a0 try_compile: Add keyword-dispatched signature
d1befe5515 cmSystemTools: Add MakeTempDirectory
Acked-by: Kitware Robot <kwrobot@kitware.com >
Tested-by: buildbot <buildbot@kitware.com >
Acked-by: Matthew Woehlke <matthew.woehlke@kitware.com >
Merge-request: !7579
2022-09-07 10:43:14 -04:00
Brad King
a64aa9bd30
Merge topic 'return-propagate-variables'
...
838a5fae23 return(): Propagate variables to result scope
8f0e1f2111 cmMakefile: add RaiseScope for list of variables
Acked-by: Kitware Robot <kwrobot@kitware.com >
Tested-by: buildbot <buildbot@kitware.com >
Acked-by: Robert Maynard <robertjmaynard@gmail.com >
Merge-request: !7634
2022-09-07 09:51:51 -04:00
Brad King
c3dafa24b2
Merge topic 'cpack-reuse-cmake-tools'
...
0c638ab597 CPack: re-use paths of tools discovered by CMakeFindBinUtils
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !7635
2022-09-07 09:49:12 -04:00