summaryrefslogtreecommitdiffstats
path: root/Help/variable
Commit message (Collapse)AuthorAgeFilesLines
* Help:CMAKE_[CTEST,CPACK]_COMMAND]: correct copy-paste errorMichael Hirsch2022-08-252-6/+6
|
* Help:CMAKE_EXPORT_COMPILE_COMMANDS: link to Ninja GeneratorsMichael Hirsch2022-08-251-1/+1
| | | | compile_commands.json is generated for Ninja and Ninja Multi-Config
* Merge topic 'bsd-variables'Craig Scott2022-08-225-0/+30
|\ | | | | | | | | | | | | | | a20d7a9707 BSD: Set *BSD variables when targeting a *BSD system 2ae42d0aa3 kFreeBSD: Do not unset LINUX variable Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7573
| * BSD: Set *BSD variables when targeting a *BSD systemCristian Adam2022-08-205-0/+30
| | | | | | | | Fixes: #23853
* | Merge topic 'doc-compiler-id-table'Brad King2022-08-161-37/+54
|\ \ | | | | | | | | | | | | | | | | | | a8430527f3 Help: `CMAKE_<LANG>_COMPILER_ID` turn code block into table Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7567
| * | Help: `CMAKE_<LANG>_COMPILER_ID` turn code block into tableAlex Turbov2022-08-151-37/+54
| |/
* | Merge topic 'doc-cmake-cli-options'Brad King2022-08-164-4/+4
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | 0224576995 Help: Replace `cmake -P` option mentions w/ Sphinx role 1b94770f27 Help: Insert link to `cmake --toolchain` option 2c54cd871a Help: Turn items of presets manual page into description list e2198fd9dc Help: Format `-Werror`/`-Wno-error` in the way it can be referenced a6070b480f Help: Use placeholder instead of listing choices in option lines 8ba20cb56f Help: Simplify `cmake --log-level` option definition 146e4e6bad Help: Split `ctest` options into groups like `cmake` man page has 4c1008d739 Help: Use `:option:` role to reference `ctest` options ... Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7554
| * Help: Replace `cmake -P` option mentions w/ Sphinx roleAlex Turbov2022-08-144-4/+4
| |
* | variable: Set LINUX variable on Linux target systemsCristian Adam2022-08-111-0/+6
|/ | | Fixes: #23840
* Merge topic 'doc-markup-program-options'Brad King2022-08-0818-24/+31
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | a6abdf6c8f Help: Consistent options declaration -- short first, then long f4563f05db Help: Value for `--graphviz=` option actually is mandatory 04843d743e Help: Replace a bunch of more ``--option`` to `:option:` role 09446266ee Help: Replace mentions of ``-D`` option with :option:`-D` role b57f27b087 Help: Replace mentions of ``-T`` and ``-A`` options with role d25b232dee Help: Replace mentions of ``-G`` option with :option:`-G` role 63940e1cab Help: Replace mentions of ``-C`` option with :option:`-C` role 183a49cbfe Help: Replace mentions of ``-S`` option with :option:`-S` role ... Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7544
| * Help: Replace a bunch of more ``--option`` to `:option:` roleAlex Turbov2022-08-0412-17/+23
| |
| * Help: Replace mentions of ``-D`` option with :option:`-D` roleAlex Turbov2022-08-042-2/+3
| |
| * Help: Replace mentions of ``-T`` and ``-A`` options with roleAlex Turbov2022-08-043-4/+4
| |
| * Help: Replace mentions of ``-S`` option with :option:`-S` roleAlex Turbov2022-08-041-1/+1
| |
* | Merge topic 'fetchcontent-set-CMAKE_VERIFY_INTERFACE_HEADER_SETS'Brad King2022-08-041-1/+23
|\ \ | |/ |/| | | | | | | | | 2a9cc3e8e8 FetchContent: Disable header set verification for dependencies Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7535
| * FetchContent: Disable header set verification for dependenciesCraig Scott2022-08-031-1/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The CMAKE_VERIFY_INTERFACE_HEADER_SETS variable is intended to be under the control of the user. It doesn't discriminate between header sets defined in the main project and those defined by dependencies brought into the build directly via FetchContent. Developers will usually only be interested in verifying the main project's header sets, not those from dependencies. Make the variable effectively only enable header set verification of the main project by turning it off during FetchContent_MakeAvailable() calls. The user still has variables like CMAKE_PROJECT_INCLUDE and CMAKE_PROJECT_<projectName>_INCLUDE available to them if they want to enable verification of all or specific dependencies respectively. Fixes: #23808
| * Merge topic 'doc-LINK_LIBRARY_genex' into release-3.24Craig Scott2022-07-0310-263/+286
| |\ | | | | | | | | | | | | | | | | | | d185f7c0a8 Help: Rework $<LINK_LIBRARY>, $<LINK_GROUP> and related docs Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7413
* | \ Merge topic 'doc-LINK_LIBRARY_genex'Craig Scott2022-07-0310-263/+286
|\ \ \ | | |/ | |/| | | | | | | | | | | | | d185f7c0a8 Help: Rework $<LINK_LIBRARY>, $<LINK_GROUP> and related docs Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7413
| * | Help: Rework $<LINK_LIBRARY>, $<LINK_GROUP> and related docsCraig Scott2022-07-0310-263/+286
| | | | | | | | | | | | | | | | | | | | | These changes restructure the docs to improve readability and flow, correct grammar and typos, and fix errors and inconsistencies in some of the examples. Fixes: #23684
* | | Merge topic 'log_level_command'Brad King2022-06-291-0/+5
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 23bbac941a Add cmake_language(GET_MESSAGE_LOG_LEVEL) sub command 2b6ef864e0 Move LogLevel enum out of cmake.h header Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !7348
| * | | Add cmake_language(GET_MESSAGE_LOG_LEVEL) sub commandAlexandru Croitor2022-06-281-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new sub-command writes a string representation of the current log level to the output variable given to the sub-command. Given that the log-level might be set either via the --log-level command line option or via the CMAKE_MESSAGE_LOG_LEVEL cache / regular variables, the priority for each of the log level sources is as follows, with the first one being the highest: 1) --log-level 2) CMAKE_MESSAGE_LOG_LEVEL regular variable 3) CMAKE_MESSAGE_LOG_LEVEL cache variable 4) default log level (STATUS) Fixes: #23572
* | | | Merge topic 'doc-osx-cmp0126'Brad King2022-06-281-1/+2
|\ \ \ \ | |/ / / |/| | / | | |/ | |/| | | | | | | 3fac3d365d Help: Mention CMP0126 in CMAKE_OSX_* variable documentation Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7414
| * | Help: Mention CMP0126 in CMAKE_OSX_* variable documentationDa Quexian2022-06-271-1/+2
| |/ | | | | | | Signed-off-by: Da Quexian <daquexian566@gmail.com>
* | Merge topic 'vs-compile-batching'Brad King2022-06-231-0/+20
|\ \ | |/ | | | | | | | | | | | | | | 9a0a94fdaa VS: Add variable to to turn off Visual Studio compile batching a7ebb73929 Help: Improve formatting in VS_NO_COMPILE_BATCHING docs Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7405
| * VS: Add variable to to turn off Visual Studio compile batchingBrad King2022-06-221-0/+20
| | | | | | | | | | | | | | | | | | Extend the change from commit b764c7c273 (VS: Add property to turn off Visual Studio compile batching, 2022-02-07, v3.24.0-rc1~710^2) by adding a variable to initialize the property on every target. Issue: #23179 Fixes: #23639
* | Merge topic 'xcode-launch-mode'Brad King2022-06-161-0/+13
|\ \ | |/ |/| | | | | | | | | a1a0ae3ad4 Xcode: Add Xcode SCHEME control for 'Launch' control Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7355
| * Xcode: Add Xcode SCHEME control for 'Launch' controlHarry Mallon2022-06-151-0/+13
| |
| * Merge topic 'doc-using-deps-guide'Brad King2022-06-091-1/+2
| |\ | | | | | | | | | | | | | | | | | | | | | 92e93f5c9e Help: Overhaul and expand the Using Dependencies Guide Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Alex <leha-bot@yandex.ru> Merge-request: !7332
* | | Help: Clarify PROJECT_IS_TOP_LEVEL behavior w.r.t. add_subdirectoryMichael Hirsch2022-06-142-6/+20
| | | | | | | | | | | | | | | | | | | | | | | | Clarify documentation added by commit 2df4badc5f (Help: Note PROJECT_IS_TOP_LEVEL behavior w.r.t. ExternalProject, 2021-07-05, v3.21.0-rc3~1^2). Fixes: #23511
* | | Merge topic 'doc-using-deps-guide' into release-3.24Brad King2022-06-091-1/+2
|\ \ \ | |/ / |/| / | |/ | | | | | | | | 92e93f5c9e Help: Overhaul and expand the Using Dependencies Guide Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Alex <leha-bot@yandex.ru> Merge-request: !7332
| * Help: Overhaul and expand the Using Dependencies GuideCraig Scott2022-06-091-1/+2
| | | | | | | | | | | | | | | | The guide previously only focused on the find_package() command, with a bias towards libraries. FetchContent was not mentioned at all. Reorganise and update the existing content. Add new sections to cover providing dependencies with FetchContent and dependency providers. Improve discoverability of the guide by mentioning it at the beginning of the find_package(), FetchContent and dependency provider docs.
* | Help: Update Sphinx versionadded directives for 3.24 releaseBrad King2022-06-083-0/+6
|/ | | | | | Run the script: Utilities/Sphinx/update_versions.py --since v3.23.0 --overwrite
* 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