summaryrefslogtreecommitdiffstats
path: root/Help/variable
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'LLVMFlang-compiler'Brad King2022-05-261-1/+2
|\ | | | | | | | | | | | | 85749766df LLVMFlang: Add support for LLVM Flang Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7246
| * LLVMFlang: Add support for LLVM FlangTin Huynh2022-05-241-1/+2
| | | | | | | | | | | | | | | | | | LLVM Flang (https://github.com/llvm/llvm-project/tree/main/flang) is an LLVM Fortran compiler that shares the same name as Flang (also known as Classic Flang). Classic Flang is in active development and is already identified by CMake as Flang. As such, LLVM Flang will be identified as `LLVMFlang`. Fixes: #22387
* | Help: Deprecate the CMAKE_COMPILER_IS_GNU* variablesfriendlyanon2022-05-243-3/+9
| | | | | | | | Fixes: #23526
* | Help: Remove wrong versionadded for CMAKE_COMPILER_IS_GNU* variablesfriendlyanon2022-05-243-6/+0
|/ | | | | | | | | | | Commit 496ec6036f (Help: Add Sphinx 'versionadded' directives to each top-level document, 2020-07-06, v3.19.0-rc1~558^2) added the versionadded directive to many variables, but it wrongly detected the commit a6d3f5418c (Help: Clarify documentation of CMAKE_COMPILER_IS_GNU{CC,CXX,G77}, 2016-09-14, v3.7.0-rc1~120^2~1) as the origin for these variables. In reality, these variables were introduced in commit f5d95fb078 (Complete rework of makefile generators expect trouble, 2002-11-08, v2.4.0~4935).
* Merge topic 'win_arm64_native_toolchain'Brad King2022-05-201-1/+1
|\ | | | | | | | | | | | | af6928ce92 VS: ARM64 as default toolset architecture for ARM64 host Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7264
| * VS: ARM64 as default toolset architecture for ARM64 hostNiyas Sait2022-05-191-1/+1
| | | | | | | | Visual Studio 2022 17 Preview introduced a native ARM64 toolchain.
* | VERIFY_HEADER_SETS: Rename to VERIFY_INTERFACE_HEADER_SETSKyle Edwards2022-05-181-5/+5
| | | | | | | | Issue: #23448
* | Merge topic 'try_compile-project-platform-vars'Brad King2022-05-172-0/+19
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | a6562ff579 try_compile: Add option to skip passing platform variables 4843a37676 try_compile: Propagate platform variables in project-mode too Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !7265
| * | try_compile: Add option to skip passing platform variablesBrad King2022-05-162-0/+14
| | | | | | | | | | | | | | | | | | | | | Add a `CMAKE_TRY_COMPILE_NO_PLATFORM_VARIABLES` variable to tell `try_compile` not to pass platform variables to the test project. Issue: #23219
| * | try_compile: Propagate platform variables in project-mode tooBrad King2022-05-161-0/+5
| |/ | | | | | | | | | | | | | | | | Add policy CMP0137 to propagate both our builtin variables and those listed by `CMAKE_TRY_COMPILE_PLATFORM_VARIABLES` to `try_compile` whole-project builds. Inspired-by: Alexander Neumann <Alexander.Neumann@hamburg.de> Fixes: #23219
* | Merge topic 'CMAKE_PROJECT_TOP_LEVEL_INCLUDES'Brad King2022-05-166-12/+50
|\ \ | |/ |/| | | | | | | | | | | | | a6c34b0353 project(): Add new CMAKE_PROJECT_TOP_LEVEL_INCLUDES file injection point 8aa29a1793 CMakeDetermineSystem: Remove unreachable code Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7250
| * project(): Add new CMAKE_PROJECT_TOP_LEVEL_INCLUDES file injection pointCraig Scott2022-05-136-12/+50
| | | | | | Fixes: #22685
* | Merge topic 'werror-property'Brad King2022-05-101-0/+9
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | 76a08cd253 COMPILE_WARNING_AS_ERROR: Add options to treat warnings as errors Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Acked-by: Michael Hirsch <michael@scivision.dev> Merge-request: !7187
| * | COMPILE_WARNING_AS_ERROR: Add options to treat warnings as errorsMartin Duffy2022-05-061-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add `COMPILE_WARNING_AS_ERROR` target property and supporting `CMAKE_COMPILE_WARNING_AS_ERROR` variable. `COMPILE_WARNING_AS_ERROR` is initialized by `CMAKE_COMPILE_WARNING_AS_ERROR`. It is a boolean variable. If it is true, it expands to a different flag depending on the compiler such that any warnings at compile will be treated as errors. Supports compiler ids that I could find a relevant flag for.
* | | OpenWatcom: Support CMAKE_WATCOM_RUNTIME_LIBRARY with Linux and OS/2 buildsCameron Cawley2022-05-061-2/+2
| | |
* | | OpenWatcom: Allow specifying the runtime libraryCameron Cawley2022-05-061-0/+36
| |/ |/| | | | | | | | | | | | | Add a `CMAKE_WATCOM_RUNTIME_LIBRARY` variable to control the runtime library selection. Add policy CMP0136 to switch to in place of the old hard-coded default flags. Fixes: #23178
* | Merge topic 'FetchContent_find_package_integration'Craig Scott2022-05-061-0/+27
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | 29e31e2825 Packages: Integrate FetchContent and find_package() Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Acked-by: huangqinjin <huangqinjin@gmail.com> Merge-request: !5688
| * | Packages: Integrate FetchContent and find_package()Craig Scott2022-05-031-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | Allow FetchContent_MakeAvailable() to try a call to find_package() first, or redirect a find_package() call to FetchContent_MakeAvailable(). The user can set variables to control which of these are allowed or tried by default. Fixes: #21687
* | | Help: Cross-reference ENV operator from cmake-language(7) manualJoachim Wuttke (h)2022-05-051-2/+3
|/ /
* | Merge topic 'NO_CMAKE_INSTALL_PREFIX'Brad King2022-04-227-0/+45
|\ \ | | | | | | | | | | | | | | | | | | | | | 42f7e39789 Find: Support per call disabling of CMAKE_INSTALL_PREFIX Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7163
| * | Find: Support per call disabling of CMAKE_INSTALL_PREFIXRobert Maynard2022-04-157-0/+45
| |/ | | | | | | Fixes #23359
* | CPack/DMG: Do not use CPACK_RESOURCE_FILE_LICENSE for SLA by defaultBrad King2022-04-141-0/+2
|/ | | | | | | | Since macOS 12.0 deprecated the tools needed to attach a SLA to a `.dmg`, we should no longer do this by default. Add a policy to change the default to off. Fixes: #22978
* Merge topic 'adsp-platform-and-compilers'Brad King2022-04-061-0/+9
|\ | | | | | | | | | | | | | | | | 87142bbd5f ADSP: Add dedicated platform module e9eabb0dcd ADSP: Configure compiler in compiler module 88b38f531a ADSP: Support both VDSP++ and CCES for ADSP compilers Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7123
| * ADSP: Add dedicated platform moduleChris Wright2022-04-041-0/+9
| |
* | xcode: add support for xcconfig filesGregor Jasny2022-04-031-0/+14
|/ | | | Fixes: #18420
* Help: Add missing cross-reference in CMAKE_USER_MAKE_RULES_OVERRIDECraig Scott2022-03-311-0/+2
| | | | | The language-specific variable references the general one already, but the general one did not mention the language-specific one. Add that cross reference to improve discoverability.
* Merge topic 'help-variables-cmakecachefiledir-might-not-be-defined'Brad King2022-03-311-4/+3
|\ | | | | | | | | | | | | cf4100d7da Help: Add that CMAKE_CACHEFILE_DIR might not be defined Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7125
| * Help: Add that CMAKE_CACHEFILE_DIR might not be definedTobias Nießen2022-03-301-4/+3
| | | | | | | | | | | | | | CMake only sets `CMAKE_CACHEFILE_DIR` when writing `CMakeCache.txt`, so the variable will usually be undefined when `CMakeLists.txt` runs. Revise its documentation to clarify that `CMAKE_BINARY_DIR` should be used instead.
* | Merge topic 'verify-header-sets'Brad King2022-03-301-0/+17
|\ \ | | | | | | | | | | | | | | | | | | | | | c798744f81 FILE_SET: Add VERIFY_HEADER_SETS target property Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !7085
| * | FILE_SET: Add VERIFY_HEADER_SETS target propertyKyle Edwards2022-03-291-0/+17
| | | | | | | | | | | | Fixes: #23338
* | | genex-LINK_(LIBRARY|GROUP) features: update variables behaviorMarc Chevrier2022-03-254-8/+9
|/ / | | | | | | | | | | | | | | Variable CMAKE_LINK_(LIBRARY|GROUP)_USING_<FEATURE>_SUPPORTED is evaluated only if CMAKE_<LANG>_LINK_(LIBRARY|GROUP)_USING_<FEATURE>_SUPPORTED is not defined. This new behavior enable to activate a feature globally on a platform and to disable it for some compilers and languages.
* | Merge topic 'better_cross-ref_CMAKE_FIND_NO_INSTALL_PREFIX'Brad King2022-03-232-2/+5
|\ \ | |/ | | | | | | | | | | 7dc654a017 Help: Better cross-reference CMAKE_FIND_NO_INSTALL_PREFIX Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7097
| * Help: Better cross-reference CMAKE_FIND_NO_INSTALL_PREFIXRobert Maynard2022-03-232-2/+5
| |
* | Genex-LINK_GROUP: Add support feature RESCAN on BSD systemsMarc Chevrier2022-03-221-4/+4
| |
* | Merge topic 'LINK_LIBRARY-WHOLE_ARCHIVE'Brad King2022-03-212-9/+27
|\ \ | | | | | | | | | | | | | | | | | | | | | dabe56de58 genex-LINK_LIBRARY: Add feature WHOLE_ARCHIVE Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: huangqinjin <huangqinjin@gmail.com> Merge-request: !7064
| * | genex-LINK_LIBRARY: Add feature WHOLE_ARCHIVEMarc Chevrier2022-03-172-9/+27
| | |
* | | Merge topic 'doc-ignore-prefix-paths'Brad King2022-03-159-51/+88
|\ \ \ | | |/ | |/| | | | | | | | | | | | | 5cb0a730c9 Help: Clarify behavior of search ignore-related variables Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7056
| * | Help: Clarify behavior of search ignore-related variablesCraig Scott2022-03-139-51/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Not all the behaviors of CMake variables for ignoring search locations by find_...() commands were fully documented. Add the missing effects, clarify the wording and restructure the way the details are assembled to reduce duplication. Also improve the cross-referencing to ensure all the related variables are more discoverable. Issue: #20878
* | | find_package: Add support for default GLOBAL imported targetsJohn Parent2022-03-101-0/+10
| |/ |/| | | | | | | | | | | | | | | Allow find package to promote scope of imported targets by specifying an argument to `find_package` or by specifying a CMake variable. * Add support for CMAKE_GLOBAL_IMPORT_SCOPE variable * Add support for GLOBAL argument to find_package Additionally add testing for above features.
* | Merge topic 'ctest_truncate'Brad King2022-03-093-2/+16
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | 140704d443 ctest: add option for output truncation 359e5b17d8 presets: bump version to v5 4634de335b cmCTestTestHandler: refactor CleanTestOutput method Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6993
| * | ctest: add option for output truncationFrank Winklmeier2022-03-083-2/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add `--test-output-truncation` to `ctest`. This option can be used to customize which part of the test output is being truncated. Currently supported values are `tail`, `middle` and `head`. Also add equivalent `CTEST_CUSTOM_TEST_OUTPUT_TRUNCATION` variable. Fixes: #23206
* | | Merge topic 'color-diagnostics'Brad King2022-03-091-0/+37
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6ab9fbd43b color: Add tests for CMAKE_COLOR_DIAGNOSTICS 78adb1b952 color: Add CMAKE_COLOR_DIAGNOSTICS environment variable 884d9de8b7 color: Introduce CMAKE_COLOR_DIAGNOSTICS variable Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Acked-by: Frank Dana <ferdnyc@gmail.com> Merge-request: !6990
| * | | color: Add CMAKE_COLOR_DIAGNOSTICS environment variableSemyon Kolton2022-03-081-1/+3
| | | |
| * | | color: Introduce CMAKE_COLOR_DIAGNOSTICS variableSemyon Kolton2022-03-081-0/+35
| |/ / | | | | | | | | | | | | | | | | | | Add a variable to control both makefile color messages and compiler color diagnostics. Fixes: #15502
* | | Merge topic 'LINK_LIBRARY-libraries'Brad King2022-03-073-9/+32
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 9fb1dff070 LINK_LIBRARY: Add features for library support on Apple 93a153bc7f Genx-LINK_LIBRARY: simplify framework features definitions Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7029
| * | | LINK_LIBRARY: Add features for library support on AppleMarc Chevrier2022-03-053-9/+32
| | | |
* | | | Genex-LINK_GROUP: Add feature RESCANMarc Chevrier2022-03-053-0/+36
|/ / / | | | | | | | | | | | | Feature RESCAN can be used to manage circular references between static libraries.
* | | Merge topic 'genex-LINK_GROUP'Brad King2022-03-017-2/+130
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0a81ea1f12 Genex-LINK_GROUP: Add possibility to group libraries at link step a9928eb4a5 SunPro C: ensure LINKER: prefix is usable for all versions 01ff75b2ff cmComputeDepends::LinkEntry: introduce enum to specify item type Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7005
| * | | Genex-LINK_GROUP: Add possibility to group libraries at link stepMarc Chevrier2022-02-287-2/+130
| | | | | | | | | | | | | | | | Fixes: #23121
* | | | Merge topic 'doc-crosscompiling-emulator-arg-list-3.15'Brad King2022-03-011-3/+4
|\ \ \ \ | |/ / / |/| | / | | |/ | |/| | | | | | | 6ff1217b9c Help: Add missing versionadded to *CROSSCOMPILING_EMULATOR Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7023