summaryrefslogtreecommitdiffstats
path: root/Help
Commit message (Collapse)AuthorAgeFilesLines
* CPack: Implement new variable CPACK_CUSTOM_INSTALL_VARIABLESNils Gladitz2021-05-233-0/+49
| | | | | | The new variable allows projects to define custom key=value pairs of variables to be set in CPack cmake_install.cmake script invocations. This allows install(SCRIPT|CODE) to be parameterized at runtime.
* install: Implement new install(CODE|SCRIPT) option ALL_COMPONENTSNils Gladitz2021-05-193-1/+19
| | | | | | | | | | | In a per-component installation the generated installation scripts are invoked once for each component. Per default custom installation script code added by install(CODE|SCRIPT) only runs for one specific component in this context. The new ALL_COMPONENTS option allows custom script code to be run once for each component being installed.
* Merge topic 'doc-link-compile-options'Brad King2021-05-186-6/+25
|\ | | | | | | | | | | | | | | 2eba7d7524 Help: Add SHELL, LINKER and host/device discussions to property docs b20c1f4880 Help: Make SHELL option examples more generic Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6130
| * Help: Add SHELL, LINKER and host/device discussions to property docsCraig Scott2021-05-156-0/+18
| | | | | | | | | | | | Section headings are also added for each common block to help guide the reader and improve navigation. Fixes: #21640
| * Help: Make SHELL option examples more genericCraig Scott2021-05-151-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | Comments at the bottom of the docs for add_compile_options() and target_compile_options() recommend using other commands if setting compiler definitions. Change the examples we use for the SHELL: functionality to use -option instead of -D so that we don't violate our own recommendations. This also makes the examples more appropriate for use with link options as well. Tweak the wording to not specify the type of option being discussed. This will already be clear from the page the text is included into and it avoids naming unrelated option types for the given page.
* | Help: Clarify calling cmake_minimum_required() inside a functionCraig Scott2021-05-152-3/+9
|/ | | Fixes: #21519
* cmScanDepFormat: Drop unused "outputs", "inputs", and "depends" fieldsBrad King2021-05-131-1/+4
| | | | | | | These fields are specified by our `P1689r3` paper, but are not actually needed. The dependencies of the scanning results themselves can be captured via normal depfile logic. Avoid saving this possibly-large information in the scanning results. It is not needed by later steps.
* Merge topic 'find_item-consistent-behavior-cache-variables'Brad King2021-05-133-0/+32
|\ | | | | | | | | | | | | | | | | 08db1341a6 find_*: ensure consistent behavior for cache variables f5fa6d53b0 class cmake: Store working directory at cmake launch b1729200c3 find_*: refactor cache variable handling Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6110
| * find_*: ensure consistent behavior for cache variablesMarc Chevrier2021-05-123-0/+32
| | | | | | | | Fixes: #22121
* | UseJava: Avoid non-word "compilability" in documentationBrad King2021-05-121-1/+1
|/ | | | | Also fix spelling in the release note from commit 3e03f359a7 (UseJava: Add RESOURCES with NAMESPACE to add_jar(), 2021-04-27).
* Merge topic 'helpctestscript'Brad King2021-05-112-0/+6
|\ | | | | | | | | | | | | 140fe8c3c6 Help: Document CTEST_SCRIPT_DIRECTORY variable Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6111
| * Help: Document CTEST_SCRIPT_DIRECTORY variableMichael Hirsch2021-05-102-0/+6
| |
* | Merge topic 'UseJava-add_jar-resource-namespace'Brad King2021-05-111-0/+5
|\ \ | | | | | | | | | | | | | | | | | | | | | 3e03f359a7 UseJava: Add RESOURCES with NAMESPACE to add_jar() Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Smit-tay <damnedyankee@gmail.com> Merge-request: !6071
| * | UseJava: Add RESOURCES with NAMESPACE to add_jar()Smit tay2021-05-101-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add_jar() currently requires (undocumented) that resources be supplied as relative paths. The resources *may* then end up in a path which does not reflect the original path particularly when performing out-of-source builds. This change adds a RESOURCE (and NAMESPACE) parameter and a function to add the names resources into the named namespace within the jar- and thus address both of these problems. Fixes: #22101
* | | Merge topic 'capabilties-generator-platforms'Brad King2021-05-112-0/+12
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 66be34853c cmake: add supported platforms to cmake -E capabilties report Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6102
| * | | cmake: add supported platforms to cmake -E capabilties reportscheffle2021-05-102-0/+12
| | | |
* | | | Help: Fix typos and spelling in documentationJosef Angstenberger2021-05-0724-28/+28
|/ / /
* | | Merge topic 'nmake-utf8'Brad King2021-05-061-0/+5
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f3f57cc4ed NMake: Use UTF-8 with BOM if supported by nmake 186c9bff53 NMake: Check nmake version for support of UTF-8 8a4f536be6 NMake: Detect nmake version Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6041
| * | | NMake: Use UTF-8 with BOM if supported by nmakeAmine Najahi2021-05-051-0/+5
| | | | | | | | | | | | | | | | Fixes: #21792
* | | | Merge topic 'generate-cmake-build-command-parallel'Brad King2021-05-053-5/+25
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d2b856bc92 ctest_build: Add the PARALLEL_LEVEL argument fc2ac46043 build_command: Add the PARALLEL_LEVEL argument 4dd4e9dd6c cmGlobalGenerator: Add parallel parameter to GenerateCMakeBuildCommand Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Brad King <brad.king@kitware.com> Merge-request: !6069
| * | | | ctest_build: Add the PARALLEL_LEVEL argumentfriendlyanon2021-05-042-0/+10
| | | | | | | | | | | | | | | | | | | | Fixes: #19712
| * | | | build_command: Add the PARALLEL_LEVEL argumentfriendlyanon2021-05-042-5/+15
| | |_|/ | |/| | | | | | | | | | Issue: #19712
* | | | Merge topic 'doc-tls'Brad King2021-05-053-1/+19
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7398993f5b Help: Document CMAKE_TLS_VERIFY variable explicitly Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6064
| * | | | Help: Document CMAKE_TLS_VERIFY variable explicitlyMichael Hirsch2021-05-043-1/+19
| |/ / / | | | | | | | | | | | | | | | | Previously it was mentioned only in the `file` and `ExternalProject` documentation.
* | | | Merge topic 'doc-review'Brad King2021-05-041-2/+4
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b82052feb8 Help/dev/review: Clarify instructions to update existing merge requests Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6073
| * | | | Help/dev/review: Clarify instructions to update existing merge requestsSmit tay2021-05-031-2/+4
| | |_|/ | |/| |
* | | | Merge topic 'extend_toolchain_flag_to_cmake_preset'Brad King2021-05-042-0/+13
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a9b968bb98 cmake-presets: Introduce `toolchainFile` preset option Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6045
| * | | | cmake-presets: Introduce `toolchainFile` preset optionRobert Maynard2021-04-282-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | In v3 of the presets, the `--toolchain` command line argument now has a preset mapping.
* | | | | Merge topic 'doc-preset-schema-relative'Brad King2021-05-041-3/+3
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 75dadc4558 Help: Use relative path for IDE Integration guide link to preset schema Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Kyle Edwards <kyle.edwards@kitware.com> Merge-request: !6083
| * | | | Help: Use relative path for IDE Integration guide link to preset schemaBrad King2021-05-031-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | This allows the integration guide to build as part of a larger set of documentation.
* | | | | Merge topic 'foreach-loop-variable'Brad King2021-05-034-1/+30
|\ \ \ \ \ | |_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 46896d98bb foreach(): loop variables are only available in the loop scope Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Ben Boeckel <ben.boeckel@kitware.com> Acked-by: Michael Hirsch <michael@scivision.dev> Merge-request: !6044
| * | | | foreach(): loop variables are only available in the loop scopeMarc Chevrier2021-04-284-1/+30
| | |_|/ | |/| | | | | | | | | | Fixes: #20553
* | | | Merge topic 'remove_bad_install_dir_schema_docs'Brad King2021-04-291-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 306db0fdb8 cmake-presets: Remove incorrect documentation for `installDir` Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6051
| * | | | cmake-presets: Remove incorrect documentation for `installDir`Robert Maynard2021-04-271-1/+1
| | |_|/ | |/| |
* | | | Merge topic 'find-msys'Brad King2021-04-293-0/+8
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 990b370401 FindMsys: Add a module to find MSYS and some bundled packages Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6057
| * | | | FindMsys: Add a module to find MSYS and some bundled packagesOrgad Shaneh2021-04-283-0/+8
| | | | |
* | | | | Merge topic 'intel-2021'Brad King2021-04-291-5/+16
|\ \ \ \ \ | |_|_|/ / |/| | | / | | |_|/ | |/| | | | | | | | | | | | | | 9c479c7c40 IntelLLVM: Add special case for ifx 2021.1 version extraction b7193ab18f Intel: Update Classic compiler version detection for 2021 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6052
| * | | IntelLLVM: Add special case for ifx 2021.1 version extractionBrad King2021-04-281-5/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The ifx beta versions forgot to define `__INTEL_LLVM_COMPILER`, and instead define `__INTEL_COMPILER == 201900`. Add a special case. Issue: #22120
| * | | Intel: Update Classic compiler version detection for 2021Brad King2021-04-281-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The value of the `__INTEL_COMPILER` macro changed convention starting in version 2021. Fixes: #22120
* | | | Merge topic 'ctest_test_measurements_docs'Brad King2021-04-282-1/+83
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b60789a758 Help: Document CTest custom test measurements 63b5ddcce2 Tests: Add cases for CTest extra measurements from tests 52eac4573d Help: Fix link to cdash.org from CTest manual Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Zack Galbreath <zack.galbreath@kitware.com> Merge-request: !6029
| * | | | Help: Document CTest custom test measurementsZack Galbreath2021-04-272-0/+82
| | | | |
| * | | | Help: Fix link to cdash.org from CTest manualZack Galbreath2021-04-271-1/+1
| | | | |
* | | | | Merge topic 'ARMClang-cpu-arch-flags'Brad King2021-04-283-0/+40
|\ \ \ \ \ | |_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | c4941b7e66 ARMClang: Do not automatically add cpu/arch compile or link options 0078db3888 ARMClang: Separate cpu/arch flags from preceding flags Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Jaeden Amero <kitware@patater.com> Merge-request: !6035
| * | | | ARMClang: Do not automatically add cpu/arch compile or link optionsLingkai Dong2021-04-273-0/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The compile options `--march=<arch>` and `--mcpu=<cpu>` and the link option `--cpu=<cpu>` are automatically added by CMake based on `CMAKE_SYSTEM_PROCESSOR` or `CMAKE_SYSTEM_ARCH`. But this is not sufficient, because armclang also supports enabling or disabling features using `+<feature>`: -mcpu=<name>[+[no]<feature>+...] For example: -mcpu=cortex-a57+nocrypto+nofp+nosimd+crc (Reference: https://developer.arm.com/documentation/dui0774/k/Compiler-Command-line-Options/-mcpu?lang=en) The problem is, even if a project adds a flag with features it needs, CMake still adds flags, resulting in code that is compiled with wrong CPU features and unable to run. Add policy `CMP0123` to not automatically add compile or link options, and let projects set them instead. Co-Author: Brad King <brad.king@kitware.com> Fixes: #21173
* | | | | Help: Convert CMAKE_LINK_DEPENDS_NO_SHARED to cross-reference linkCraig Scott2021-04-271-2/+3
| |/ / / |/| | |
* | | | Merge topic 'ctest_junit'Brad King2021-04-273-0/+21
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 25bf514447 ctest: Add support for writing test results in JUnit XML format Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Zack Galbreath <zack.galbreath@kitware.com> Acked-by: Michael Hirsch <michael@scivision.dev> Acked-by: MvdHurk <maikelvandenhurk@hotmail.com> Acked-by: Alexander Richardson <arichardson.kde@gmail.com> Merge-request: !6020
| * | | | ctest: Add support for writing test results in JUnit XML formatZack Galbreath2021-04-263-0/+21
| | | | | | | | | | | | | | | | | | | | Addresses #18654
* | | | | Help: Add release note for MSYS runtime supportBrad King2021-04-261-0/+4
| |_|_|/ |/| | |
* | | | Merge topic 'SWIG'Brad King2021-04-261-0/+6
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e3e005dbd8 UseSWIG: use swig dependencies for Xcode generator Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6042
| * | | | UseSWIG: use swig dependencies for Xcode generatorMarc Chevrier2021-04-231-0/+6
| | | | |