summaryrefslogtreecommitdiffstats
path: root/Help
Commit message (Collapse)AuthorAgeFilesLines
* Autogen: Add support for response files for moc predef targetstophoo2023-11-166-0/+38
| | | | | Add support for response files for moc predef targets and make the limit when to use response files for autogen targets configurable.
* FetchContent: Set CMAKE_EXPORT_FIND_PACKAGE_NAMEKyle Edwards2023-11-131-0/+2
|
* install(EXPORT): Export find_dependency() callsKyle Edwards2023-11-137-2/+118
| | | | | | Issue: #20511 Co-Authored-by: Brad King <brad.king@kitware.com> Co-Authored-by: Robert Maynard <rmaynard@nvidia.com>
* Help/export: Add signature directivesKyle Edwards2023-11-131-8/+8
|
* Merge topic 'make-test-depend-on-all'Brad King2023-11-134-0/+28
|\ | | | | | | | | | | | | | | | | | | 5e0c1777a3 Optionally make `test` target depend on `all` eaa00d4dfa Tests: Add case to verify that 'make test' does not 'make all' Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Acked-by: Jason Juang <jasjuang@gmail.com> Merge-request: !8956
| * Optionally make `test` target depend on `all`William Sciaroni2023-11-104-0/+28
| | | | | | | | Fixes: #8774
* | Link step: Enable to configure deduplication of librariesMarc Chevrier2023-11-093-0/+60
|/ | | | | | | | | Some platforms, Apple or Windows for instance, do not require to duplicate static libraries to resolve mutual dependencies. Moreover, Xcode version 15 emits a warning if a library is duplicated. On Windows, enable a better control of libraries order. Fixes: #20722, #25297
* Merge topic 'doct'Brad King2023-11-081-4/+31
|\ | | | | | | | | | | | | 7b4983536a Help:test prop WILL_FAIL clarify and example Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8937
| * Help:test prop WILL_FAIL clarify and examplescivision2023-11-071-4/+31
| | | | | | | | | | | | | | | | | | | | This makes the WILL_FAIL behavior explicit. Users could be confused because some other build systems treat equivalent test properties as allowing a failure, but still pass on a passing test, and may catch SIGABRT unlike CMake. We show an example of how to wrap a test so that sigabrt, segfault, etc. are also handled by WILL_FAIL.
* | Help: Document when <LANG>_COMPILER_ID genex learned to support multiple idsscivision2023-11-071-0/+12
| | | | | | | | It was added in CMake 3.15.
* | Merge topic 'Ninja-use-depslog'Brad King2023-11-071-0/+5
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bb7a0497ef cmTransformDepfile: warn when a depfile is not written to c22c473bde Tests/Ninja*/CustomCommandDepfile: check that deps are in the database b0177003e1 cmGlobalNinjaGenerator: tell `ninja` to actually read the depfile 45eff9145e cmAddCustomCommandCommand: use `cmStrCat` c6445c615b Tests/RunCMake/Ninja: fix subdir prefix check Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8911
| * | cmGlobalNinjaGenerator: tell `ninja` to actually read the depfileBen Boeckel2023-11-011-0/+5
| | | | | | | | | | | | | | | | | | | | | But only do so if the depfile is not specified as an output of the command. Otherwise the command will out-of-date itself as `ninja` deletes depfiles that it incorporates into the database and a missing output will cause the command to run again.
* | | Merge topic 'cmake-E-cat-stdin'Brad King2023-11-062-0/+9
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | ab72846794 cmake -E cat: Add ability to print standard input Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8942
| * | cmake -E cat: Add ability to print standard inputKyle Edwards2023-11-032-0/+9
| | |
* | | CMakeFindPackageMode: Link to cmake --find-package documentation權少2023-11-031-0/+1
|/ /
* | Merge topic 'if-check-file-permissions'Brad King2023-11-022-0/+46
|\ \ | | | | | | | | | | | | | | | | | | | | | 337bc5662c if(): add operators IS_READABLE, IS_WRITABLE and IS_EXECUTABLE. Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8908
| * | if(): add operators IS_READABLE, IS_WRITABLE and IS_EXECUTABLE.Marc Chevrier2023-11-012-0/+46
| | | | | | | | | | | | Offers possibility to check for file or directory permissions.
* | | Merge topic 'cxxmodules-cmp0155-graceful-fallback-without-scanner'Brad King2023-11-013-4/+7
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | 1f507580a1 cmGlobalGenerator: give context about module queries 889aa0354a CMP0155: ignore scanning for sources if no scanner is available Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !8925
| * | CMP0155: ignore scanning for sources if no scanner is availableBen Boeckel2023-11-013-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows for a more graceful transition for projects using C++20 without scanner support (e.g., Clang 15 or GCC 13). While newer compilers will (needlessly) scan, it allows C++20-using projects to use older compilers without having to set `CMAKE_CXX_SCAN_FOR_MODULES` to support newer CMake minimum versions. Fixes: #25357
| * | Merge topic 'ninja-better-order-depends' into release-3.28Brad King2023-10-231-0/+6
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ed45432571 cmNinjaTargetGenerator: do not order-depend on C++ module sources 0973cd6702 cmNinjaTargetGenerator: use the file set visibility API 4625170925 cmFileSet: add a query for includeable file set types 51f9d9f0a2 cmNinjaTargetGenerator: avoid traversing old outputs repeatedly Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !8902
* | | | Help/IMPORTED_LOCATION: link to `LOCATION_<CONFIG>` docsBen Boeckel2023-10-281-1/+1
| | | |
* | | | Merge topic 'unity-build-objc'Brad King2023-10-272-5/+22
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e218db1a90 Unity: Enable UNITY_BUILD for OBJC and OBJCXX files Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8906
| * | | | Unity: Enable UNITY_BUILD for OBJC and OBJCXX filesRob Raguet-Schofield2023-10-262-5/+22
| | | | |
* | | | | Link Step: compute effective linker used by the compilerMarc Chevrier2023-10-246-0/+89
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extract the effective linker during the computation of implicit artifacts delivered by the compiler to the linker. Define various variables describing the linker: * CMAKE_<LANG>_COMPILER_LINKER * CMAKE_<LANG>_COMPILER_LINKER_VERSION * CMAKE_<LANG>_COMPILER_LINKER_ID * CMAKE_<LANG>_COMPILER_LINKER_FRONTEND_VARIANT This is complementary to feature introduced by commit 96a953b1ed (Add options to specify linker tool, 2023-09-27). Fixes: #17596, #18209, #25344
* | | | Merge topic 'ninja-better-order-depends'Brad King2023-10-231-0/+6
|\ \ \ \ | | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ed45432571 cmNinjaTargetGenerator: do not order-depend on C++ module sources 0973cd6702 cmNinjaTargetGenerator: use the file set visibility API 4625170925 cmFileSet: add a query for includeable file set types 51f9d9f0a2 cmNinjaTargetGenerator: avoid traversing old outputs repeatedly Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !8902
| * | | cmNinjaTargetGenerator: do not order-depend on C++ module sourcesBen Boeckel2023-10-201-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | C++ module sources should not be included by any other TUs, so their presence cannot matter for order-only dependencies of the entire target. Exclude them. Update CMP0154 to take this into consideration and add tests to the `CXXModules` suite (which already deals with module support detection).
* | | | Merge topic 'doc-modules-deprecated'Brad King2023-10-231-4/+4
|\ \ \ \ | |_|/ / |/| | / | | |/ | |/| | | | | | | 75ca6e17f2 Help: Move some deprecated modules to the dedicated sections Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8903
| * | Help: Move some deprecated modules to the dedicated sections權少2023-10-201-4/+4
| |/
* | Merge topic 'ci-linkcheck'Brad King2023-10-202-2/+2
|\ \ | | | | | | | | | | | | | | | | | | 54e06c601d Help: Replace link with its http redirect Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8898
| * | Help: Replace link with its http redirectBrad King2023-10-192-2/+2
| | |
* | | Merge topic 'doc-cmake-presets-8'Brad King2023-10-191-0/+3
|\ \ \ | | |/ | |/| | | | | | | | | | | | | d3978a3835 Help: Document cmake-presets version 8 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8899
| * | Help: Document cmake-presets version 8Johel Ernesto Guerrero Peña2023-10-191-0/+3
| | | | | | | | | | | | | | | This was accidentally missed in commit f1a7179520 (presets: Add $schema property to JSON schema, 2023-09-07, v3.28.0-rc1~106^2).
* | | CMAKE_PROJECT_INCLUDE: Allow to run module filesCristian Le2023-10-186-5/+15
| |/ |/| | | | | Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
* | Merge topic 'project-include-multiple'Brad King2023-10-185-4/+29
|\ \ | | | | | | | | | | | | | | | | | | 704acca96b CMAKE_PROJECT_INCLUDE: Add support for including multiple files Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8884
| * | CMAKE_PROJECT_INCLUDE: Add support for including multiple filesCristian Le2023-10-185-4/+29
| | | | | | | | | | | | | | | Fixes: #25341 Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
* | | Merge topic 'cxxmodules-vs-no-synthetic-targets'Brad King2023-10-181-0/+1
|\ \ \ | |/ / |/| / | |/ | | | | | | | | 17fd7fe2ae Tests/CXXModules: test Visual Studio synthetic target error badb6ab120 VS: Explicitly disallow C++ modules provided by imported targets Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8895
| * VS: Explicitly disallow C++ modules provided by imported targetsBen Boeckel2023-10-171-0/+1
| | | | | | | | | | | | | | The `-ifcOnly` flag is understood by MSBuild, but there are unresolved questions about how to integrate with with CMake's model. See: #25328
* | Merge topic 'try_compile-alias-targets'Brad King2023-10-171-0/+3
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | 8f9f371668 try_compile: Add support for using ALIAS targets 9f8aa94192 Add missing `OUTPUT` in ExportImport test Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !8877
| * | try_compile: Add support for using ALIAS targetsCristian Le2023-10-161-0/+3
| | | | | | | | | | | | | | | Fixes: #25337 Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
* | | Merge topic 'try_compile-linker-language'Brad King2023-10-173-0/+16
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | 0f37000304 try_{compile,run}: add LINKER_LANGUAGE option dc0dbffb0f Tests: Remove redundant policy setting from RunCMake.try_{compile,run} cases Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !8871
| * | try_{compile,run}: add LINKER_LANGUAGE optionscivision2023-10-163-0/+16
| | | | | | | | | | | | Fixes: #25326
* | | Add options to specify linker toolMarc Chevrier2023-10-138-0/+156
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Offer the capability, through variable `CMAKE_LINKER_TYPE`, as well as the target property `LINKER_TYPE` to specify which linker must be used. The implementation of this capability is specified by variables specific to the language and linker type: `CMAKE_<LANG>_USING_LINKER_<TYPE>`. Some definitions are provided as part of `CMake`. For example, to select the `LLVM` linker rather than the standard one, the type `LLD` should be specified through the variable `CMAKE_LINKER_TYPE`. And, on `Apple`, `Linux` and some environments on `Windows`, the variable `CMAKE_<LANG>_USING_LINKER_LLD` has value `-fuse-ld=lld`. And for `Windows` environments based on `MSVC`, where the linker is used directly, the tool `lld-link.exe` will be used rather than `link.exe`. Fixes: #19174, #24254, #24990
* | Merge topic 'doc-typo'Brad King2023-10-111-1/+1
|\ \ | |/ | | | | | | | | | | 5bbc9055c0 Help: Fix typo in COMPATIBLE_INTERFACE_NUMBER_MIN Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8867
| * Help: Fix typo in COMPATIBLE_INTERFACE_NUMBER_MIN權少2023-10-111-1/+1
| |
| * Merge branch 'release-3.27' into release-3.28Brad King2023-10-061-2/+2
| |\
* | \ Merge branch 'release-3.27'Brad King2023-10-061-2/+2
|\ \ \ | | |/ | |/|
| * | CMake 3.27.7v3.27.7Brad King2023-10-061-2/+2
| | |
| * | Merge topic 'doc-CMP0124' into release-3.27Brad King2023-10-021-5/+37
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | 55bf2a3494 Help: Document CMP0124 behavior on already-set variables Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8850
* | | | Begin post-3.28 developmentBrad King2023-10-032-0/+9
| |_|/ |/| |
* | | Help: Drop development topic notes to prepare releaseBrad King2023-10-032-9/+0
| | | | | | | | | | | | | | | Release versions do not have the development topic section of the CMake Release Notes index page.