summaryrefslogtreecommitdiffstats
path: root/Help/variable
Commit message (Collapse)AuthorAgeFilesLines
* Swift: Add CMAKE_LINKER_TYPE supportEvan Wilde2024-04-021-17/+22
| | | | | | Extend commit 96a953b1ed (Add options to specify linker tool, 2023-09-27, v3.29.0-rc1~577^2) with the `CMAKE_Swift_USING_LINKER_*` variables needed to support `CMAKE_LINKER_TYPE` for Swift.
* Merge topic 'doc-vsfortran' into release-3.29Brad King2024-04-012-6/+6
|\ | | | | | | | | | | | | 7fa0057c74 Help: emphasize need for VS Integrations with oneAPI Fortran Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9387
| * Help: emphasize need for VS Integrations with oneAPI Fortranscivision2024-03-292-6/+6
| | | | | | | | | | | | | | | | | | | | | | Be more explicit that VS Integration is required to use Intel Fortran with MSVC. It is common that users do not have VS Integration installed because oneAPI is then only usable with a narrow range of MSVC versions, even when oneAPI is used by itself with MSVC as the required backend. Without VS Integration, a wide range of MSVC versions work as the backend to oneAPI on Windows.
* | Help: Restructure and improve LINKER_TYPE docsCraig Scott2024-03-252-32/+33
| |
* | Help: CMAKE_<LANG>_USING_LINKER_<TYPE> can be a list of flagsCraig Scott2024-03-251-2/+4
| |
* | Help: Add custom linker example for CMAKE_<LANG>_USING_LINKER_<TYPE>Craig Scott2024-03-251-0/+8
| |
* | Help: Grammar, typos and wording improvements for linker variablesCraig Scott2024-03-255-27/+24
|/
* Help: Improve wording of CMAKE_PROJECT_..._INCLUDE... changes for 3.29Craig Scott2024-03-164-4/+8
|
* Merge topic 'LINKER_TYPE-mold-support' into release-3.29Brad King2024-03-141-0/+6
|\ | | | | | | | | | | | | | | | | 801ae06952 LINKER_TYPE: Support MOLD only on GCC versions that support it 939ac5287e LINKER_TYPE: fix spelling error in message 922883782b LINKER_TYPE: Document that linker tool should be in the PATH Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9334
| * LINKER_TYPE: Document that linker tool should be in the PATHMarc Chevrier2024-03-121-0/+6
| | | | | | | | Issue: #25748
* | EXPORT_PACKAGE_DEPENDENCIES: Add experimental feature gateBrad King2024-03-121-1/+3
|/ | | | | | | Some design concerns have been raised after trying the 3.29 release candidates. Avoid committing to a stable public interface for now. Issue: #25767
* Help: Convert http URLs to httpsscivision2024-03-072-6/+6
|
* Help: Advise calling option(BUILD_SHARED_LIBS) early enoughCraig Scott2024-02-211-0/+9
| | | | | | | Amends 01e33df83f (Help: Modernize BUILD_SHARED_LIBS documentation, 2024-02-21) to highlight that BUILD_SHARED_LIBS needs to be set early enough to prevent different behavior between the first and subsequent runs.
* Help: Modernize BUILD_SHARED_LIBS documentationBrad King2024-02-211-6/+30
| | | | | | | Previously the documentation used long-outdated terminology from CMake's early days. Issue: #25699
* TIClang: Add support for TI Clang-based compilers, including tiarmclangAlan Phipps2024-02-091-0/+2
| | | | | | | | Add TIClang compiler ID and support in compiler modules. Update documentation. Add rudimentary RunCMake test for TIClang to test basic functionality. Fixes: #24619
* Merge topic 'doc-autogen' into release-3.29Brad King2024-02-082-8/+14
|\ | | | | | | | | | | | | | | ccaf529c4e Autogen: Update Documentation 16cc011fa5 cmQtAutoGenGlobalInitializer: Improve Const-correctness Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9223
| * Autogen: Update DocumentationOrkun Tokdemir2024-02-082-8/+14
| | | | | | | | | | | | | | * Add Qt 6 to documentation * Add explanation about `<ORIGIN>_autogen_timestamp_deps` Fixes: #25201
* | Help: Document CMAKE_SYSTEM_NAME possible valuesPeter Kokot2024-02-052-0/+85
|/ | | | Fixes: #21489
* cmake: Allow CMAKE_INSTALL_PREFIX to be set by environment variableSilvio Traversaro2024-01-302-5/+17
| | | | Fixes: #25023
* Add genex support to TEST_LAUNCHER and CROSSCOMPILING_EMULATORBrad King2024-01-292-7/+10
| | | | | | | | Evaluate generator expressions in these properties, as they apply to `add_test`, `add_custom_command`, and `add_custom_target`. The `CMAKE_CROSSCOMPILING_EMULATOR` variable's `try_run` behavior occurs at configure time and so cannot support generator expressions.
* Merge topic 'autogen-exe-per-config'Brad King2024-01-181-0/+10
|\ | | | | | | | | | | | | | | | | 596e84b0d5 NinjaMultiConfig: Update tests for the new dependency change 7c39dabdbc Autogen: AUTO*_EXECUTABLE: add support for per-config values Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !8919
| * Autogen: AUTO*_EXECUTABLE: add support for per-config valuesOrkun Tokdemir2024-01-171-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Per-config values were added to `AUTO*_EXECUTABLE`. * Dependency order was refactored for `cmake_autogen` and `cmake_autorcc` to avoid unnecessary rebuilds. * A new parameter was added for `cmake_autogen` and `cmake_autorcc` to specify the config name of the `auto*_executable` to be used. * Add `AUTOGEN_BETTER_GRAPH_MULTI_CONFIG` target property to change the behavior of the dependency graph. * The timestamp target is split into three targets for per-config to avoid redundant `mocs_compilation` builds when `AUTOGEN_BETTER_GRAPH_MULTI_CONFIG` is ON * Per-config `DEP_FILE_RULE_NAME` values were added to `AutogenInfo.json` for `Multi-Config` usage. * Some functions were refactored to avoid code duplication. This commit reimplements fddd0f0443b4ce81d61f15ee1b2f13105967b25a Fixes: #20074
* | Help: Drop incorrect versionadded mark from CMAKE_MATCH_<n>Brad King2024-01-091-2/+0
|/ | | | | | | It was added by commit 496ec6036f (Help: Add Sphinx 'versionadded' directives to each top-level document, 2020-07-06, v3.19.0-rc1~558^2) because the document happened to be added during the 3.9 release series, but the variable has existed since the beginning.
* Merge topic 'cmake-test-launcher'Brad King2023-12-151-0/+16
|\ | | | | | | | | | | | | | | | | | | | | 88863d83d6 fileapi: Add test launcher to codemodel-v2 1ec0372ed4 add_test: Optionally use a launcher for tests running in-project targets 478a5f4e04 fileapi: Make launcher attribute 'arguments' optional b44e38a397 cmFileAPICodemodel: Add missing std::move() Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !8963
| * add_test: Optionally use a launcher for tests running in-project targetsRalf Habacker2023-12-131-0/+16
| | | | | | | | | | | | | | Add a `CMAKE_TEST_LAUNCHER` variable and corresponding `TEST_LAUNCHER` target property. Issue: #23672
* | Merge topic 'compute-compiler-linker'Brad King2023-12-091-0/+2
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | df025444b2 LinkerId: Identify AIX and SunOS system linkers c1e48a19a5 LinkerId: Try multiple flags to detect linker id and version 1e42a0cf18 LinkerId: Match linker id and version more robustly Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !9057
| * | LinkerId: Identify AIX and SunOS system linkersBrad King2023-12-081-0/+2
| |/ | | | | | | Populate `CMAKE_<LANG>_COMPILER_LINKER_{ID,VERSION}` on these platforms.
* | Merge topic 'LLVMFlang-Fortran-link-enhancements'Brad King2023-12-091-5/+7
|\ \ | | | | | | | | | | | | | | | | | | 0502b345f2 LLVMFlang Fortran: enhance link capabilities Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9025
| * | LLVMFlang Fortran: enhance link capabilitiesMarc Chevrier2023-12-081-5/+7
| |/ | | | | | | | | * Add support for "LINKER:" prefix. * Add support, on Linux, for linker selection through CMAKE_LINKER_TYPE variable.
* | MSVC: Teach find_library to consider Rust's '${name}.dll.lib' conventionDaniel Ching2023-12-081-5/+5
|/ | | | | | | This convention is used by Rust toolchains (rustc/cargo/cargo-c) for the MSVC ABI. Fixes: #25478
* VS: Add support for using Intel oneAPI Fortran compiler in .vfproj filesBrad King2023-11-222-0/+26
| | | | | | | Add a `fortran={ifort,ifx}` field to `CMAKE_GENERATOR_TOOLSET` to specify which Intel Fortran compiler to use. Fixes: #25427
* Merge topic 'ci-fedora-39'Brad King2023-11-201-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cdd741ebf9 Merge branch 'backport-ci-fedora-39' into ci-fedora-39 9283b20659 ci: Suppress CPack/RPM tests pending fix for Fedora 39 18145e8745 ci: Update FindMPI test environment for mpich on Fedora 39 a8be80ccf2 ci: Drop now-unnecessary Clang rules for CXXModules tests 99238b23e9 ci: use Fedora 39 images and environments 57eadec617 ci: update Linux image to Fedora 39 653262162c clang-tidy module: Update to build against LLVM/Clang 17 2cf9a65835 clang-tidy: ignore warnings new in version 17 ... Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !8983
| * Merge branch 'backport-ci-fedora-39' into ci-fedora-39Brad King2023-11-171-1/+1
| |\
| | * codespell: Fix typosBrad King2023-11-171-1/+1
| | |
* | | Merge topic 'swift-compilation-mode'Brad King2023-11-191-0/+32
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | 0f80101b73 Tests: Update Swift tests to use CMP0157 NEW behavior c1d787e473 Swift: Add abstraction for compilation mode c39384f540 Tests: Simplify RunCMake.Swift conditions to enable use of Swift Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8918
| * | Swift: Add abstraction for compilation modeEvan Wilde2023-11-171-0/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a `CMAKE_Swift_COMPILATION_MODE` variable and corresponding `Swift_COMPILATION_MODE` target property to control the compilation mode. Select among `wholemodule`, `singlefile`, and `incremental`. Add policy CMP0157 to remove the default `-wmo` flags in favor of the abstract setting. Issue: #25366
* | | Merge topic 'autogen-rsp'Brad King2023-11-171-0/+10
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 232610e60e Autogen: Use new API for limiting autogen command line lengths 7a07887055 Autogen: Add support for response files for moc predef targets 7eb5ab2c63 Autogen: Generalize MaybeWriteMocResponseFile to MaybeWriteResponseFile Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !8944
| * | | Autogen: Add support for response files for moc predef targetstophoo2023-11-161-0/+10
| | | | | | | | | | | | | | | | | | | | Add support for response files for moc predef targets and make the limit when to use response files for autogen targets configurable.
* | | | Merge topic 'doc-find_package-advice'Brad King2023-11-152-0/+41
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | d007d304ff Help: FetchContent FIND_PACKAGE_ARGS REQUIRED usually inappropriate 6341267780 Help: Note ways CMAKE_..._FIND_PACKAGE_... vars can break projects Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8951
| * | | Help: Note ways CMAKE_..._FIND_PACKAGE_... vars can break projectsCraig Scott2023-11-072-0/+41
| | | | | | | | | | | | | | | | Issue: #23779
* | | | install(EXPORT): Export find_dependency() callsKyle Edwards2023-11-131-0/+6
| |/ / |/| | | | | | | | | | | | | | Issue: #20511 Co-Authored-by: Brad King <brad.king@kitware.com> Co-Authored-by: Robert Maynard <rmaynard@nvidia.com>
* | | Optionally make `test` target depend on `all`William Sciaroni2023-11-102-0/+21
|/ / | | | | | | Fixes: #8774
* | Link Step: compute effective linker used by the compilerMarc Chevrier2023-10-244-0/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | CMAKE_PROJECT_INCLUDE: Allow to run module filesCristian Le2023-10-185-4/+12
| | | | | | | | Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
* | CMAKE_PROJECT_INCLUDE: Add support for including multiple filesCristian Le2023-10-184-4/+20
| | | | | | | | | | Fixes: #25341 Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
* | Add options to specify linker toolMarc Chevrier2023-10-134-0/+120
|/ | | | | | | | | | | | | | | | | | 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
* cmExperimental: remove the flag for C++ modulesBen Boeckel2023-10-021-6/+1
| | | | | | | All the major compilers now have scheduled releases with support for scanning, so remove the experimental gate. Fixes: #18355
* Merge topic 'misc-cxxmodule-fixes'Brad King2023-09-271-2/+4
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3b632f32fa Tests/CXXModules: forward the default build type 5ab6b09691 Tests/CXXModules: fix multi-config and MSVC details 11b62ef118 Tests/CXXModules: add missing `bmi-only` and compiler id fields 5d9631fbdd Tests/CXXModules: fix key set mismatch error messages 86e7fb72cb Tests/CXXModules: use a less generic name for the config 6b940dc590 Tests/CXXModules: replace the object extension as well 1c9f83c8ec Tests/CXXModules: fix error detection propagation 7a4c02cb38 cmGlobalGenerator: factor out messaging for CMP0037 ... Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Acked-by: Pavel Solodovnikov <hellyeahdominate@gmail.com> Merge-request: !8834
| * Help/CMAKE_EXPORT_COMPILE_COMMANDS: mention the `output` fieldBen Boeckel2023-09-251-2/+4
| | | | | | | | | | Added in 887a8874c3 (EXPORT_COMPILE_COMMANDS: add `output` field, 2022-10-28) via !7844. Sync the docs with this addition.
* | Merge topic 'hip-nvidia'Brad King2023-09-262-31/+47
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fd982eec10 HIP: Add tests for special NVIDIA values of CMAKE_HIP_ARCHITECTURES 8c8b3f1bfa HIP: Fix support for -DCMAKE_HIP_ARCHITECTURES=native with NVCC b3e92775ab HIP: Add CMAKE_HIP_HOST_COMPILER when compiler is NVCC e43918b4ca HIP: Fix linking mixed-lang binary with CXX compiler and Makefile generators 4794505122 HIP: Do not require hip-lang package for NVIDIA platform 09d759dc7f HIP: Simplify exclusion of AMD device runtime with NVIDIA GPUs 2a60663670 HIP: Simplify CMAKE_GENERATOR references for determining compiler 8124950f6c CUDA: Generalize CMAKE_{CUDA => <LANG>}_HOST_COMPILER variable docs Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8836