summaryrefslogtreecommitdiffstats
path: root/Help/variable
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'cmake-host-executable-suffix'Brad King2024-10-032-1/+17
|\ | | | | | | | | | | | | | | | | 5d2b89d5fa Add CMAKE_HOST_EXECUTABLE_SUFFIX for Unix/Windows Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Acked-by: shiz01 <shiz01@tutanota.com> Merge-request: !9863
| * Add CMAKE_HOST_EXECUTABLE_SUFFIX for Unix/Windowsleha-bot2024-10-022-1/+17
| | | | | | | | Closes: #17553
* | Static libraries de-duplication: keep first occurrenceMarc Chevrier2024-10-021-1/+1
|/ | | | Fixes: #26335
* Merge topic 'curl-tls-version'Brad King2024-09-271-0/+5
|\ | | | | | | | | | | | | | | | | 38390245a2 ctest: Require minimum TLS 1.2 by default 5e1a59dc2b file(DOWNLOAD/UPLOAD): Require minimum TLS 1.2 by default Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !9848
| * file(DOWNLOAD/UPLOAD): Require minimum TLS 1.2 by defaultBrad King2024-09-261-0/+5
| | | | | | | | Fixes: #25701
* | Merge topic 'link-strategy'Brad King2024-09-261-0/+68
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | 7abd3137b7 Linking: Optionally reorder direct dependencies from LINK_LIBRARIES 9285a9dc9a cmComputeLinkDepends: Add final dependency ordering to debug output f792db4ca2 cmComputeLinkDepends: Add undocumented per-target debug property 80b469a51d cmComputeLinkDepends: Factor out string literals as named constants 3bd73fcc76 cmComputeLinkDepends: Modernize member initialization 8db69c767b cmComputeLinkDepends: Remove redundant member dccdd030cd cmComputeLinkDepends: Replace depender index sentinel value with cm::optional 6c9d8dc243 cmComputeLinkDepends: Replace group index sentinel value with cm::optional ... Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !9835
| * Linking: Optionally reorder direct dependencies from LINK_LIBRARIESBrad King2024-09-251-0/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Traditionally CMake generates link lines by starting with the direct link dependencies specified by `LINK_LIBRARIES` in their original order and then appending indirect dependencies that the direct dependencies do not express. This gives projects control over ordering among independent entries, which can be important when intermixing flags and libraries, or when multiple libraries provide the same symbol. However, it may also result in inefficient link lines. Add support for an alternative strategy that can reorder direct link dependencies to produce more efficient link lines. This is useful for projects that cannot easily specify their targets' direct dependencies in an order that satisfies indirect dependencies. Add a `CMAKE_LINK_LIBRARIES_STRATEGY` variable and corresponding `LINK_LIBRARIES_STRATEGY` target property to select a strategy. Fixes: #26271
* | Merge topic 'curl-tls-verify'Brad King2024-09-242-1/+12
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | 4e62bc943c ctest: Verify TLS server certificate by default 8e92ee34f6 file(DOWNLOAD/UPLOAD): Verify TLS server certificate by default dcaea54898 cmCTestCurl: Clarify names and logic using optional<bool> 03d37ae3ff cmFileCommand: Clarify names and logic using optional<bool> Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9843
| * | ctest: Verify TLS server certificate by defaultBrad King2024-09-241-0/+6
| | | | | | | | | | | | Issue: #23608
| * | file(DOWNLOAD/UPLOAD): Verify TLS server certificate by defaultBrad King2024-09-241-1/+6
| |/ | | | | | | | | | | | | | | | | | | If the connection fails in a way that might be a certificate error, and verification was enabled by the new default, mention environment variable `CMAKE_TLS_VERIFY` in the diagnostic to help users that were relying on the old behavior turn off server certificate verification in their environment. Fixes: #23608
* | NVCC: Detect host compiler id and versionBrad King2024-09-203-0/+25
|/ | | | | | Report them in `CMAKE_<LANG>_HOST_COMPILER_{ID,VERSION}` variables. Fixes: #20901
* Merge topic 'windows-kernel-mode-driver-includes'Brad King2024-09-051-0/+13
|\ | | | | | | | | | | | | b151bcfc9e WindowsKernelModeDriver: Add WDK include and link paths on MSVC Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9705
| * WindowsKernelModeDriver: Add WDK include and link paths on MSVCJoseph Snyder2024-09-031-0/+13
| | | | | | | | | | | | | | | | | | Detect Windows Kernel-Mode Driver include directories and library search paths from the WDK command-line environment. Require toolchain files to specify the KMDF target version via a new variable. Since this changes the behavior of the WindowsKernelModeDriver experimental feature, update its UUID.
* | Merge topic 'build-databases'Brad King2024-09-051-0/+86
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | e77655555c cmExperimental: gate build database support behind a flag 23cbeb5035 ci: enable `build_database` CXXModules tests 6863c1d823 Tests/CXXModules: add tests for module commands 123107c1a4 Tests/CXXModules: add support for running targets under a given config 438038b5e1 Tests/CXXModules: support building specific targets of example trees 84bc710d84 cmGlobalGenerator: generate build database files for targets 670f753f24 cmDyndepCollation: write build database metadata dcf9a66ffe cxxmodules: plumb control data for exporting build databases ... Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9708
| * cmExperimental: gate build database support behind a flagBen Boeckel2024-09-031-0/+6
| | | | | | | | | | Given that the feature currently only supports C++ sources and is not formally accepted by ISO yet, gate it behind a flag.
| * cxxmodules: plumb control data for exporting build databasesBen Boeckel2024-08-271-0/+80
| | | | | | | | | | | | This includes the target property, its initializing variable, its initializing environment variable, and updating related docs to mention the new bits.
* | Merge topic 'standard-link-directories'Brad King2024-08-291-0/+14
|\ \ | | | | | | | | | | | | | | | | | | | | | 20e9b59d5e Linking: Add CMAKE_LANG_STANDARD_LINK_DIRECTORIES Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !9707
| * | Linking: Add CMAKE_LANG_STANDARD_LINK_DIRECTORIESVito Gamberini2024-08-281-0/+14
| |/ | | | | | | Closes: #18222
* | Drop Visual Studio 12 2013 generatorBrad King2024-08-286-21/+15
|/ | | | This generator has been deprecated since CMake 3.28. Remove it.
* Help: Rename Oracle Solaris Studio to Oracle Developer StudioPeter Kokot2024-08-091-1/+1
| | | | | With version 12.5 Oracle Solaris Studio was renamed to Oracle Developer Studio.
* Help: Add a link to `cmake(1)` CLI option to `CMAKE_VS_NUGET_PACKAGE_RESTORE`Alex Turbov2024-08-011-3/+4
|
* LFortran: Add support for this compilerChristoph Junghans2024-07-221-0/+1
| | | | Fixes: #25419
* Merge topic 'cpack-wix-per-machine'Brad King2024-07-221-0/+2
|\ | | | | | | | | | | | | d588e81ffb CPack/WIX: Generate perMachine installers by default Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9672
| * CPack/WIX: Generate perMachine installers by defaultBrad King2024-07-181-0/+2
| | | | | | | | | | | | | | | | | | | | | | Add policy CMP0172 to set `CPACK_WIX_INSTALL_SCOPE` to `perMachine` by default. Follow up commit 60661f6770 (CPack/WiX: Make InstallScope configurable, 2023-11-07, v3.29.0-rc1~413^2) and commit 614100dbf6 (CPack/WiX: Restore default (missing) InstallScope from 3.28 and lower, 2024-06-05, v3.30.0-rc1~7^2~1). Issue: #20962 Issue: #26029
* | Merge topic 'aix-archive-shared-libraries'Brad King2024-07-193-0/+25
|\ \ | |/ |/| | | | | | | | | | | | | d27fe9dfba AIX: Add option to archive shared libraries 98013ad1ca cmXCOFF: Add support for editing binary inside an archive Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !9606
| * AIX: Add option to archive shared librariesAditya Vidyadhar Kamath2024-07-173-0/+25
| | | | | | | | | | | | | | | | Add option `CMAKE_AIX_SHARED_LIBRARY_ARCHIVE`. There will no versions for the shared objects when this option is used. Closes: #26033
* | WASI: Add platform modulesJacob Hummer2024-07-162-0/+8
|/ | | | | | | | | | Add minimal platform modules to support toolchain files like those in * https://github.com/WebAssembly/wasi-sdk or direct use of `-DCMAKE_SYSTEM_NAME="WASI"` Fixes: #19223
* Link feature attributes: stabilizationMarc Chevrier2024-06-213-23/+24
| | | | | * enhance OVERRIDE handling * Update wording
* Help: Improve link library feature properties docsCraig Scott2024-06-154-103/+115
|
* Merge topic 'dep-provider-try_compile'Brad King2024-05-311-4/+7
|\ | | | | | | | | | | | | | | 4cb5bb014d try_compile: Propagating top level includes into whole-project calls Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Robert Maynard <robertjmaynard@gmail.com> Merge-request: !9532
| * try_compile: Propagating top level includes into whole-project callsCraig Scott2024-05-301-4/+7
| | | | | | | | Fixes: #24151
* | Merge topic 'msvc-v143-versions'Brad King2024-05-301-1/+1
|\ \ | | | | | | | | | | | | | | | | | | 3873574f89 Help: Update MSVC_VERSION range for VS 17.10's MSVC 14.40 toolset Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9554
| * | Help: Update MSVC_VERSION range for VS 17.10's MSVC 14.40 toolsetBrad King2024-05-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | According to this blog post: * https://devblogs.microsoft.com/cppblog/msvc-toolset-minor-version-number-14-40-in-vs-2022-v17-10/ the 14.40 through 14.49 version range will be used by the v143 toolsets. Fixes: #26015
* | | HIP: Populate CMAKE_HIP_KNOWN_FEATURES global propertyBrad King2024-05-281-0/+13
| |/ |/| | | | | Fixes: #26013
* | GenEx $<LINK_LIBRARY>: Add the support of properties attached to featuresMarc Chevrier2024-05-154-0/+116
| | | | | | | | Fixes: #24504, #25954
* | Merge topic 'remove-vs9-generator'Brad King2024-05-094-4/+3
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 03c31b0395 Drop Visual Studio 9 2008 generator 88c70dde34 cmGlobalVisualStudioGenerator: Use member 'Version' more directly 0bdcf1cb17 cmLocalVisualStudio7Generator: Make vfproj conditions more explicit acc5ea7390 cmLocalVisualStudio7Generator: Reset per-target members after every target 252702bb35 cmVisualStudioGeneratorOptions: Order version check branches consistently Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: scivision <michael@scivision.dev> Merge-request: !9496
| * | Drop Visual Studio 9 2008 generatorBrad King2024-05-084-4/+3
| | | | | | | | | | | | This generator has been deprecated since CMake 3.27. Remove it.
* | | Help: Provide simple CMAKE_MODULE_PATH exampleJuan Ramos2024-05-071-1/+14
|/ /
* | Add CMAKE_<LANG>_STANDARD_LATEST variablesTyler2024-04-301-0/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a variable to indicate the latest standard known to be supported for each language: * `CMAKE_C_STANDARD_LATEST` * `CMAKE_CXX_STANDARD_LATEST` * `CMAKE_CUDA_STANDARD_LATEST` * `CMAKE_HIP_STANDARD_LATEST` * `CMAKE_OBJC_STANDARD_LATEST` * `CMAKE_OBJCXX_STANDARD_LATEST` These variables, more generally referred to as `CMAKE_<LANG>_STANDARD_LATEST`, are assigned an integer value which represents the minimum between the latest version of the associated language standard supported by the current compiler and the latest version supported by CMake. Add documentation for these variables in a new page called `CMAKE_<LANG>_STANDARD_LATEST` was added under the "Variables for Languages" section of the `cmake-variables(7)` page. Update each compiler-specific CMake script under `${CMAKE_ROOT}\Modules\Compiler` to manually define the relevant `CMAKE_<LANG>_STANDARD_LATEST` variable as necessary. This will require updating and maintaining as newer compiler versions become recognized by CMake. Closes: #25717
* | Merge topic 'doc-install-prefix-override-default'Brad King2024-04-221-1/+1
|\ \ | | | | | | | | | | | | | | | | | | 062c9dda89 Help: update CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9445
| * | Help: update CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULTEtienne Doms2024-04-191-1/+1
| | | | | | | | | | | | | | | Suggests to override CMAKE_INSTALL_PREFIX value with set_property(CACHE) instead of set(FORCE).
* | | Merge topic 'doc-objc-lang-flags'Brad King2024-04-191-0/+4
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 31e6017bb6 Help: Document ObjC/ObjC++ flag variables Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !9437
| * | | Help: Document ObjC/ObjC++ flag variablesAlexander Borsuk2024-04-181-0/+4
| |/ / | | | | | | | | | Signed-off-by: Alexander Borsuk <me@alex.bio>
* | | cxxmodules: provide a detection variable for `import std`Ben Boeckel2024-04-181-0/+14
|/ /
* | Experimental: add an experimental feature gate for `import std`Ben Boeckel2024-04-121-0/+5
| |
* | cmTarget: support the `CXX_MODULE_STD` propertyBen Boeckel2024-04-111-0/+10
| |
* | Merge topic 'swift-linker-selection'Brad King2024-04-031-17/+22
|\ \ | |/ | | | | | | | | | | 3fb4092826 Swift: Add CMAKE_LINKER_TYPE support Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9380
| * 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
* | \ Merge topic 'tls-verify'Brad King2024-04-012-3/+5
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7139944264 ctest: Fall back to CMake environment variable for TLS server verification c295df53c6 ctest: Test fallback to CMake options for TLS server verification 0d250dd021 ExternalProject: Honor CMAKE_TLS_VERIFY environment variable e8404502b1 ExternalProject: Revise TLS_VERIFY wording to use TLS_VERSION pattern 46faaf9667 file(DOWNLOAD|UPLOAD): Add CMAKE_TLS_VERIFY environment variable 8b0169fe2b file(DOWNLOAD|UPLOAD): Add test covering CMAKE_TLS_VERIFY cmake variable 93886f5c7d file(DOWNLOAD|UPLOAD): Avoid unnecessary CMAKE_TLS_VERIFY variable lookup bed32f400e file(DOWNLOAD|UPLOAD): Document TLS_VERSION fallback to environment variable ... Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: scivision <michael@scivision.dev> Merge-request: !9389