summaryrefslogtreecommitdiffstats
path: root/Help/variable
Commit message (Collapse)AuthorAgeFilesLines
* CUDA: Add CUDA_ARCHITECTURES target propertyRaul Tambre2020-04-151-0/+17
| | | | | | | | | | | Simplifies CUDA target architecture handling. Required for Clang support as Clang doesn't automatically select a supported architecture. We detect a supported architecture during compiler identification and set CMAKE_CUDA_ARCHITECTURES to it. Introduces CMP0104 for backwards compatibility with manually setting code generation flags with NVCC. Implements #17963.
* Merge topic 'docs-CMAKE_CURRENT_FUNCTION'Craig Scott2020-04-114-24/+45
|\ | | | | | | | | | | | | | | | | | | | | 10ee9611f0 Help: Improve wording of CMAKE_CURRENT_FUNCTION_LIST_DIR docs 22fbc404a7 Help: Add cross-references for CMAKE_CURRENT_FUNCTION* docs d2b139687a Help: Minor grammar cleanups of CMAKE_CURRENT_FUNCTION* docs Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Brad King <brad.king@kitware.com> Acked-by: Alex Turbov <i.zaufi@gmail.com> Merge-request: !4595
| * Help: Improve wording of CMAKE_CURRENT_FUNCTION_LIST_DIR docsCraig Scott2020-04-101-20/+28
| | | | | | | | | | | | | | | | | | | | | | The original wording was somewhat confusing in talking about rendering of templates. While technically correct, a less experienced user may not know that terminology. The wording has been updated to more clearly describe the example usage. The old way of implementing the example is not "bad", it was the only way to do things before the CMAKE_CURRENT_FUNCTION_LIST_DIR variable was added. The example has been updated to remove the Bad/Good captions to reflect this. Indentation of the examples was also fixed to make them conform to the guidelines.
| * Help: Add cross-references for CMAKE_CURRENT_FUNCTION* docsCraig Scott2020-04-103-0/+12
| |
| * Help: Minor grammar cleanups of CMAKE_CURRENT_FUNCTION* docsCraig Scott2020-04-104-4/+5
| |
* | Merge topic 'ctest-resource-file-cache'Brad King2020-04-061-0/+5
|\ \ | | | | | | | | | | | | | | | | | | 060d2ce269 CTest: Add CTEST_RESOURCE_SPEC_FILE variable Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4564
| * | CTest: Add CTEST_RESOURCE_SPEC_FILE variableKyle Edwards2020-04-021-0/+5
| | |
* | | Merge topic 'docs-CMAKE_FIND_DEBUG_MODE'Craig Scott2020-04-061-0/+1
|\ \ \ | |/ / |/| / | |/ | | | | | | | | 477b8b5dfe Help: Improve discoverability of CMAKE_FIND_DEBUG_MODE 218bda9671 Help: Fix CMAKE_FIND_DEBUG_MODE list formatting Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4569
| * Help: Fix CMAKE_FIND_DEBUG_MODE list formattingCraig Scott2020-04-041-0/+1
| |
| * Merge topic 'docs-xcode-gen-scheme-workdir' into release-3.17Brad King2020-03-301-2/+2
| |\ | | | | | | | | | | | | | | | | | | | | | 6905451e11 Help: Add missing XCODE_SCHEME_WORKING_DIRECTORY 6ff07dac76 Help: Minor typos and formatting for XCODE_SCHEME_WORKING_DIRECTORY Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4543
* | \ Merge topic 'docs-xcode-gen-scheme-workdir'Brad King2020-03-301-2/+2
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | 6905451e11 Help: Add missing XCODE_SCHEME_WORKING_DIRECTORY 6ff07dac76 Help: Minor typos and formatting for XCODE_SCHEME_WORKING_DIRECTORY Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4543
| * | Help: Minor typos and formatting for XCODE_SCHEME_WORKING_DIRECTORYCraig Scott2020-03-291-2/+2
| | |
* | | Merge topic 'ninja-multi-doc-variable-update'Craig Scott2020-03-283-6/+32
|\ \ \ | | |/ | |/| | | | | | | | | | | | | c8fd26eb57 Help: Move Ninja Multi-Config variable details into their respective pages Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4532
| * | Help: Move Ninja Multi-Config variable details into their respective pagesKyle Edwards2020-03-263-6/+32
| | |
* | | Merge topic 'pch-warn-invalid'Brad King2020-03-271-0/+5
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 2ce08e5489 PCH: add an option to disable `-Winvalid-pch` Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4499
| * | | PCH: add an option to disable `-Winvalid-pch`Cristian Adam2020-03-261-0/+5
| | | | | | | | | | | | | | | | Fixes: #20295
* | | | Merge topic 'doc-typo'Brad King2020-03-231-1/+1
|\ \ \ \ | |/ / / |/| / / | |/ / | | | | | | | | | 356c7cec2c Help: Fixed typo in CMAKE_INSTALL_RPATH_USE_LINK_PATH.rst Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4516
| * | Help: Fixed typo in CMAKE_INSTALL_RPATH_USE_LINK_PATH.rstJaak Ristioja2020-03-231-1/+1
| |/ | | | | | | Signed-off-by: Jaak Ristioja <jaak@ristioja.ee>
* | Add support for FRAMEWORK_MULTI_CONFIG_POSTFIX_<CONFIG>Alexandru Croitor2020-03-041-0/+8
|/
* Ninja Multi-Config: Remove "NMC" from variable namesKyle Edwards2020-02-273-6/+6
| | | | | | Also rename `..._DEFAULT_BUILD_FILE_CONFIG` to `..._DEFAULT_BUILD_TYPE`. These name changes make the variables meaningful for future use by other generators.
* Help: Note that CMAKE_CFG_INTDIR is not fully supported on Ninja Multi-ConfigKyle Edwards2020-02-251-0/+7
|
* Merge topic 'ninja-multi-variable-shuffle'Brad King2020-02-037-30/+20
|\ | | | | | | | | | | | | b966f86d86 Ninja Multi-Config: Shuffle variables around Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4305
| * Ninja Multi-Config: Shuffle variables aroundKyle Edwards2020-02-037-30/+20
| | | | | | | | | | | | Remove redundant variable CMAKE_NINJA_MULTI_CROSS_CONFIG_ENABLE. Rename other variables. Document and improve handling of error conditions.
* | AIX: Add an option to disable automatic exports from shared librariesBrad King2020-01-311-0/+6
|/ | | | | | | | | | Since commit 0f150b69d3 (AIX: Explicitly compute shared object exports for both XL and GNU, 2019-07-11, v3.16.0-rc1~418^2~2) we always export all symbols from shared libraries by default. Add a new target property called `AIX_EXPORT_ALL_SYMBOLS` that can be explicitly set to OFF to suppress this behavior and export no symbols by default. Fixes: #20290
* Merge topic 'cuda_runtime_library_controls'Brad King2020-01-281-0/+24
|\ | | | | | | | | | | | | 0d0145138f CUDA: Add abstraction for cuda runtime selection Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4178
| * CUDA: Add abstraction for cuda runtime selectionRobert Maynard2020-01-271-0/+24
| | | | | | | | | | Fixes #17559 Replace our hard-coded default of cudart=static with a first-class abstraction to select the runtime library from an enumeration of logical names.
* | Merge topic 'ninja-multi-cross-configs'Brad King2020-01-241-0/+7
|\ \ | | | | | | | | | | | | | | | | | | b7a2baf38c Ninja Multi-Config: Add variable to control configs used in cross-config build Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4269
| * | Ninja Multi-Config: Add variable to control configs used in cross-config buildKyle Edwards2020-01-231-0/+7
| |/
* | Merge topic 'vs-dotnet-standard-core'Brad King2020-01-242-1/+21
|\ \ | |/ |/| | | | | | | | | ae1e1909a1 VS: Add support for .NET Standard and .NET Core Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4240
| * VS: Add support for .NET Standard and .NET CoreJoerg Bornemann2020-01-242-1/+21
| | | | | | | | Fixes: #20105
* | Ninja Multi-Config: Add variable to control aliases in build.ninjaKyle Edwards2020-01-221-0/+6
| |
* | Merge topic 'mark_as_advanced-without-cache'Brad King2020-01-221-0/+2
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | 3ec82b713e cmMarkAsAdvancedCommand: ignore variables which don't exist in the cache 701a5c60e0 cmake: avoid marking local or unused variables as advanced af158149e7 FindOpenSSL: do not mark a local variable as advanced 74f659f1f2 FindCurses: only mark CURSES_EXTRA_LIBRARY when it is used 7e2ae4e96d FindOpenGL: only mark declared cache variables as advanced 7cc02a0c29 FindLua: only mark LUA_MATH_LIBRARY as advanced if required 85cd26b8a6 FindBoost: only mark Boost_DIR as advanced if defined 338c7916ba CTest: avoid marking undeclared cache variables as advanced ... Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4150
| * cmMarkAsAdvancedCommand: ignore variables which don't exist in the cacheBen Boeckel2020-01-201-0/+2
| | | | | | | | Fixes: #18331
* | Merge topic 'cmake-ctest-arguments'Brad King2020-01-171-0/+6
|\ \ | | | | | | | | | | | | | | | | | | 4153d8445b Add CMAKE_CTEST_ARGUMENTS variable to pass command-line arguments to ctest Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4168
| * | Add CMAKE_CTEST_ARGUMENTS variable to pass command-line arguments to ctestRobert Goulet2020-01-151-0/+6
| |/ | | | | | | Fixes: #20172
* | Merge topic 'rename-cross-config-variable'Brad King2020-01-172-6/+10
|\ \ | | | | | | | | | | | | | | | | | | 310b58e961 Ninja Multi-Config: Rename variable to be more consistent Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4234
| * | Ninja Multi-Config: Rename variable to be more consistentKyle Edwards2020-01-162-6/+10
| |/ | | | | | | Also make some tweaks to the documentation.
* | Ninja: Add a separate job pool for PCH creationDan Johnston2020-01-161-0/+6
|/ | | | | | | Add a `JOB_POOL_PRECOMPILE_HEADER` target property to specify the pool name, and its associated `CMAKE_JOB_POOL_PRECOMPILE_HEADER` variable. Fixes: #20217
* Merge topic 'fix-global-autogen-target-help'Brad King2020-01-141-1/+1
|\ | | | | | | | | | | | | 3104dc059c Help: Fix variable name on CMAKE_GLOBAL_AUTOGEN_TARGET page Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4212
| * Help: Fix variable name on CMAKE_GLOBAL_AUTOGEN_TARGET pageJoerg Bornemann2020-01-131-1/+1
| | | | | | | | CMAKE_GLOBAL_AUTORCC_TARGET was mentioned accidentally.
* | Ninja Multi-Config: Make cross-config building opt-inKyle Edwards2020-01-101-0/+6
| | | | | | | | | | | | | | | | | | | | | | Many users will want to use the Ninja Multi-Config generator like a traditional Visual Studio-style multi-config generator, which doesn't mix configurations - custom commands are built using target executables of the same configuration the command is for. We do not want to force these people to generate an N*N build matrix when they only need N*1, especially if they have lots of targets. Add a new variable, CMAKE_NINJA_CROSS_CONFIG_ENABLE, to opt-in to the cross-config build matrix.
* | ObjC: Add _COMPILE_LAUNCHER supportCristian Adam2020-01-091-1/+1
|/ | | | Fixes: #20178
* Help: Document CMAKE_FIND_DEBUG_MODERobert Maynard2019-12-191-0/+22
|
* Merge topic 'fix-vs-winrt-by-default'Brad King2019-12-171-2/+12
|\ | | | | | | | | | | | | | | 557ea4614e VS: Change CMAKE_VS_WINRT_BY_DEFAULT to not implicitly enable WinRT 7bcef355bf Vs: Add test for VS_WINRT_BY_DEFAULT Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4127
| * VS: Change CMAKE_VS_WINRT_BY_DEFAULT to not implicitly enable WinRTPetr Polezhaev2019-12-161-2/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original behaviour would unconditionally enable WinRT for all projects so source file flag generation code can acknowledge WinRT being present and disable it for C language source files. An unintentional result of that approach is that WinRT is enabled for ALL projects, including C++ projects/source files with no way to disable it Instead use `CMAKE_VS_WINRT_BY_DEFAULT` as a hint that the platform is WinRT-by-default and set global `CompileAsWinRT` flag to `false` unless it was explicitly requested by either `WINRT_COMPONENT` option or `/ZW` compilation option - similar to what Windows Phone/Windows Store platform logic does In case WinRT compilation is enabled for a project by either of aforementioned methods, C language source file override logic will still kick in and disable CompileAsWinRT for C source files Fixes: #20063
* | Help: Add documentation and release notes for multi-config NinjaKyle Edwards2019-12-131-0/+7
|/
* Merge topic 'function-var-current'Kyle Edwards2019-12-124-0/+49
|\ | | | | | | | | | | | | | | | | | | 24fdd51f45 Refactor: Replace CMAKE_CURRENT_LIST_DIR with CMAKE_CURRENT_FUNCTION_LIST_DIR 90e3e2a777 cmFunctionCommand: Introduce `CMAKE_CURRENT_FUNCTION*` variables dd54290dab Refactor: Modernize `function` command Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Ben Boeckel <ben.boeckel@kitware.com> Merge-request: !4000
| * cmFunctionCommand: Introduce `CMAKE_CURRENT_FUNCTION*` variablesAlex Turbov2019-12-104-0/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | `CMAKE_CURRENT_FUNCTION` Can be used for diagnostic or debugging messages like the `__PRETTY_FUNCTION__` macro of GCC. `CMAKE_CURRENT_FUNCTION_LIST_DIR` Eliminates the necessity of the additional "global" variables inside a module used to access additional "resource" files from functions defined in the module. ...
* | Merge topic 'add_cuda_meta_compiler_features'Brad King2019-12-121-0/+11
|\ \ | | | | | | | | | | | | | | | | | | 2467a2b318 CUDA: Add cuda meta-features (e.g. ``cuda_std_11``) support Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3992
| * | CUDA: Add cuda meta-features (e.g. ``cuda_std_11``) supportRobert Maynard2019-12-101-0/+11
| | |