Commit Graph

65874 Commits

Author SHA1 Message Date
Brad King f19949db77 Help: Document when AUTOUIC_OPTIONS properties were added 2024-04-23 12:57:49 -04:00
Brad King 7df3a4c437 Merge topic 'ci-env-scripts'
bf973c41e5 ci: Factor out scripts to add sccache to job environment
b0f7aebc77 ci: Factor out scripts to add ninja to job environment
ef3495f74f ci: Factor out scripts to add cmake to job environment

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !9452
2024-04-23 07:58:12 -04:00
Brad King 805af4f3ad Merge topic 'msvc-wine-import-std'
abb33568e6 cxxmodules: Support `import std` for msvc-wine

Acked-by: Kitware Robot <kwrobot@kitware.com>
Reviewed-by: Ben Boeckel <ben.boeckel@kitware.com>
Merge-request: !9450
2024-04-23 07:57:30 -04:00
Brad King 9eb4ae4f64 Merge topic 'check-pthreads-static'
b4f17e5b44 FindThreads: Fix pthreads detection with -Wmissing-prototypes

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !9449
2024-04-23 07:56:45 -04:00
Brad King 3d8d13f4bc Merge topic 'pkg_get_variable-list'
9ddef32ba0 FindPkgConfig: Fix parsing of quoted lists with pkgconf <1.5.1

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9447
2024-04-23 07:55:17 -04:00
Kitware Robot d41252c91f CMake Nightly Date Stamp 2024-04-23 00:01:40 -04:00
Brad King bf973c41e5 ci: Factor out scripts to add sccache to job environment 2024-04-22 18:22:11 -04:00
Brad King b0f7aebc77 ci: Factor out scripts to add ninja to job environment 2024-04-22 18:17:28 -04:00
Brad King ef3495f74f ci: Factor out scripts to add cmake to job environment 2024-04-22 18:16:39 -04:00
David Benjamin b4f17e5b44 FindThreads: Fix pthreads detection with -Wmissing-prototypes
If the project builds with `-Wmissing-prototypes` to catch unnecessarily
exported symbols, `CheckForPthreads.c` will fail to build.  Fix this by
marking `start_routine` as static.

Fixes: #25886
2024-04-22 09:51:41 -04:00
Brad King f1b3143ee9 Merge branch 'release-3.29' 2024-04-22 08:42:14 -04:00
Brad King 8b3d48ab94 Merge topic 'save-restore-PACKAGE_PREFIX_DIR'
41f4e1c457 CMakePackageConfigHelpers: Document PACKAGE_PREFIX_DIR for public use
c5231ba29e find_package: Save/restore PACKAGE_PREFIX_DIR
8ac7958e3a generate_apple_*_selection_file: Save/restore PACKAGE_PREFIX_DIR
bf88879f1f generate_apple_architecture_selection_file: Avoid early returns
a4ac2c92f4 Help: Add missing section heading for apple architecture selection
b7fcc44be9 Help: Fix CMakePackageConfigHelpers typos, grammar and formatting
f1cacaa830 Tests/RunCMake/CMakePackage: Define variable closer to where it is used

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9430
2024-04-22 08:42:13 -04:00
Brad King 8f44e1a07b Merge topic 'save-restore-PACKAGE_PREFIX_DIR' into release-3.29
8ac7958e3a generate_apple_*_selection_file: Save/restore PACKAGE_PREFIX_DIR
bf88879f1f generate_apple_architecture_selection_file: Avoid early returns
a4ac2c92f4 Help: Add missing section heading for apple architecture selection
b7fcc44be9 Help: Fix CMakePackageConfigHelpers typos, grammar and formatting
f1cacaa830 Tests/RunCMake/CMakePackage: Define variable closer to where it is used

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9430
2024-04-22 08:42:12 -04:00
Brad King ad98b352ba Merge topic 'doc-install-prefix-override-default'
062c9dda89 Help: update CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9445
2024-04-22 08:26:28 -04:00
Brad King cba96f59d5 Merge topic 'cuda-std'
fb0990ef04 Tests/CompileFeatures: Cover cuda_std_## meta-features
011f3d1dd3 Tests/CompileFeatures: Fix c_std_23 case with Clang < 14
1f40604421 Tests/CompileFeatures: Cover CUDA default standard level
138436609f CUDA: Fix detection of default C++ standard level with MSVC host compiler

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9444
2024-04-22 08:25:26 -04:00
Kitware Robot c3864d7f62 CMake Nightly Date Stamp 2024-04-22 00:02:35 -04:00
huangqinjin abb33568e6 cxxmodules: Support import std for msvc-wine 2024-04-21 20:40:52 +08:00
Kitware Robot 14de6802e4 CMake Nightly Date Stamp 2024-04-21 00:01:16 -04:00
Kerem Aksu 9ddef32ba0 FindPkgConfig: Fix parsing of quoted lists with pkgconf <1.5.1
Unquote pkg-config output if they are printed within quotes. pkgconf
<1.5.1 and classic pkg-config <0.29.1 prints quoted variables without
unquoting them, this breaks returning variables with multiple values
as a list behavior of CMake.

Add a new test case for pkg_get_variable with multiple values to test
list behavior and backslash escaped spaces within variable values.

Fixes: #25904
2024-04-20 21:03:56 +03:00
Kitware Robot 26867ebc1b CMake Nightly Date Stamp 2024-04-20 00:01:34 -04:00
Craig Scott 41f4e1c457 CMakePackageConfigHelpers: Document PACKAGE_PREFIX_DIR for public use
This variable has long been provided by `configure_package_config_file`
in the `@PACKAGE_INIT@` part of the package configuration file it
generates.  Although not publicly documented, projects have come to
use it.  Now that we preserve the value across nested `find_package`
calls, it has a stable meaning.

Issue: #25827
2024-04-20 10:05:40 +10:00
Etienne Doms 062c9dda89 Help: update CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT
Suggests to override CMAKE_INSTALL_PREFIX value with set_property(CACHE)
instead of set(FORCE).
2024-04-19 18:31:12 +02:00
Craig Scott c5231ba29e find_package: Save/restore PACKAGE_PREFIX_DIR
Package configuration files generated by `configure_package_config_file`
set this variable in `@PACKAGE_INIT@` and then use it later.  There may
be intervening calls to `find_package`, e.g., via `find_dependency`.
If the loaded package also used `configure_package_config_file`, it
may change the value of `PACKAGE_PREFIX_DIR`.  Explicitly save and
restore the value to avoid this.

Fixes: #25827
2024-04-19 11:44:09 -04:00
Craig Scott 8ac7958e3a generate_apple_*_selection_file: Save/restore PACKAGE_PREFIX_DIR
Issue: #25827
2024-04-19 11:41:12 -04:00
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
Brad King b99bdf5a4f Merge topic 'cxxmodules-import-std-user-detect'
678717f3e4 cxxmodules: provide a detection variable for `import std`

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: huangqinjin <huangqinjin@gmail.com>
Merge-request: !9442
2024-04-19 08:52:16 -04:00
Brad King fb0990ef04 Tests/CompileFeatures: Cover cuda_std_## meta-features 2024-04-19 08:39:15 -04:00
Brad King 011f3d1dd3 Tests/CompileFeatures: Fix c_std_23 case with Clang < 14
Generalize the `__STDC_VERSION__` exception previously added for
AppleClang < 14 to also cover LLVM/Clang < 14.  Although the two
vendors do not follow the same version scheme, the major versions
happen to match in this case.
2024-04-19 08:39:15 -04:00
Craig Scott bf88879f1f generate_apple_architecture_selection_file: Avoid early returns
This refactoring makes the generated file follow the same structure as
generate_apple_platform_selection_file(). It uses a single if-elseif-else-endif
block rather than a sequence of if-endif blocks. This avoids any early
return() calls, allowing cleanup code to be added at the end later.
2024-04-19 18:17:19 +10:00
Craig Scott a4ac2c92f4 Help: Add missing section heading for apple architecture selection 2024-04-19 18:17:19 +10:00
Craig Scott b7fcc44be9 Help: Fix CMakePackageConfigHelpers typos, grammar and formatting 2024-04-19 18:17:19 +10:00
Kitware Robot e8e1b01e19 CMake Nightly Date Stamp 2024-04-19 00:01:12 -04:00
Brad King 82f8225aac Merge topic 'FindBacktrace-imported-library'
b26ce8a1c9 Tests/FindBacktrace: Fix compilation as C90

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9443
2024-04-18 13:03:16 -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
Brad King 1f40604421 Tests/CompileFeatures: Cover CUDA default standard level 2024-04-18 08:30:38 -04:00
Brad King 138436609f CUDA: Fix detection of default C++ standard level with MSVC host compiler 2024-04-18 08:30:38 -04:00
Brad King 0bb28c522b Merge topic 'invalid-ctest-arg-revisions'
96dbf6c34a ctest: Cleanup for invalid argument handling

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !9440
2024-04-18 08:28:05 -04:00
Brad King 6b01aa6fed Merge topic 'tests_gdk_init'
1928e7758d Tests: fix calling gdk_init()

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !9441
2024-04-18 08:21:04 -04:00
Kitware Robot 992925c271 CMake Nightly Date Stamp 2024-04-18 00:01:16 -04:00
Martin Duffy 96dbf6c34a ctest: Cleanup for invalid argument handling
Backs out unrelated change and changes error message to 'Unknown argument'
2024-04-17 15:44:56 -04:00
Brad King b26ce8a1c9 Tests/FindBacktrace: Fix compilation as C90
Revise the test from commit 9433755e5d (FindBacktrace: Add imported
library, 2024-04-06) to work when compiled as C90.
2024-04-17 13:14:11 -04:00
Brad King 9bf79a7964 Merge topic 'lang-std-c++26'
1ba4a06338 GNU: Add flags for C++26 modes
2038f2c2b1 C++26: Support detection as the default standard

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !9434
2024-04-17 09:15:34 -04:00
Brad King 56f333ef2f Merge topic 'lang-std'
dcbc2ef00d CompilerId: Clarify CUDA, HIP, ObjC, ObjC++ standard level detection
cf457fbf9c CompilerId: Drop MSVC conditions from ObjC and ObjC++
f606a27e8d ObjCXX: Fix detection of C++20 default compiler mode

Acked-by: Kitware Robot <kwrobot@kitware.com>
Reviewed-by: Raul Tambre <raul@tambre.ee>
Merge-request: !9438
2024-04-17 08:44:58 -04:00
Brad King 75ace1b8e5 Merge branch 'release-3.29' 2024-04-17 08:43:16 -04:00
Brad King 048221add9 Merge topic 'doc-ObjC-17-23'
84f1eb64f3 Help/OBJC_STANDARD: Document Objective C17 and C23 support

Acked-by: Kitware Robot <kwrobot@kitware.com>
Reviewed-by: Raul Tambre <raul@tambre.ee>
Merge-request: !9439
2024-04-17 08:43:16 -04:00
Brad King 58157d9293 Merge topic 'doc-ObjC-17-23' into release-3.29
84f1eb64f3 Help/OBJC_STANDARD: Document Objective C17 and C23 support

Acked-by: Kitware Robot <kwrobot@kitware.com>
Reviewed-by: Raul Tambre <raul@tambre.ee>
Merge-request: !9439
2024-04-17 08:43:15 -04:00
Brad King 1340770f64 Merge branch 'release-3.29' 2024-04-17 08:41:10 -04:00
Brad King 9bb04d65a8 Merge topic 'FindBoost-1.85'
0d5953b373 FindBoost: Add support for Boost 1.85

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9435
2024-04-17 08:41:10 -04:00
Brad King 10815461dc Merge topic 'FindBoost-1.85' into release-3.29
0d5953b373 FindBoost: Add support for Boost 1.85

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9435
2024-04-17 08:41:08 -04:00