summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* cmStandardLevelResolver: Avoid unnecessary flags, fix unset level logicRaul Tambre2021-09-2920-24/+375
| | | | | | | | | | | | | | | | | | The changes are part of CMP0128. When the standard level is unset: * Flags are added if extension mode doesn't match the compiler's default. Previously logic only worked if LANG_EXTENSIONS was ON. Fixes #22224. * The full flag is used. Previously CMAKE_LANG_EXTENSION_COMPILE_OPTION was used. This was only supported for IAR. Otherwise: * Avoid adding flags if not necessary per the detected compiler defaults. * Fixed check for when the requested standard is older. It now matches the nearby comments. I reworded the fallback comment as its logic was a bit difficult to wrap my head around.
* Tests: Simplify RunCMake.CompileFeatures introspectionRaul Tambre2021-09-284-60/+24
|
* CompilerID: Compiler extensions default detectionRaul Tambre2021-09-2816-6/+93
|
* CompilerID: Rename language_dialect to language_standardRaul Tambre2021-09-287-29/+29
| | | | | In Linux C++ terms dialect usually refers to having GNU extensions or not. Change the name to better reflect that this is about the standard version.
* Help: Document CMAKE_<LANG>_STANDARD_DEFAULTRaul Tambre2021-09-282-0/+8
| | | | Seems to be stable and will referred to by policy for standards flags rework.
* Help: Document HIP standard/extensions properties and variablesRaul Tambre2021-09-288-0/+122
|
* Help: Make language standard/extensions variable pages less wordyRaul Tambre2021-09-2815-75/+30
| | | | | | They all had two sentences describing the same thing. Furthermore, with the shorter wording the explicit advice to see the property being initialized for further information seems unnecessary.
* Help: Generic language standard and extension variables documentationRaul Tambre2021-09-288-0/+138
| | | | | | Add generic documentation to improve the discoverability of language-specific ones and to make it possible to refer to them generically from other language generic documentation.
* Merge topic 'tutorial_update_step_8'Brad King2021-09-282-3/+24
|\ | | | | | | | | | | | | f55a02a26e Tutorial: Enhance CTestConfig info in Step 8 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6565
| * Tutorial: Enhance CTestConfig info in Step 8Joseph Snyder2021-09-272-3/+24
| | | | | | | | | | | | | | | | | | | | | | Add a copy of the CTestConfig.cmake from Step 9 into the directory for Step 8. Expand the information about the contents of the CTestConfig file and write a brief explanation of where on CDash to acquire the CTestConfig file for a specific project. CMake Issue: #22663
* | CMake Nightly Date StampKitware Robot2021-09-281-1/+1
| |
* | Merge branch 'release-3.21'Brad King2021-09-270-0/+0
|\ \
| * \ Merge topic 'autogen-dep-on-imported-implib-only-target' into release-3.21Brad King2021-09-276-1/+85
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 895fa3433f cmQtAutoGenInitializer: support IMPLIB-only imported targets 354c1f5628 Tests/RunCMake/Autogen: test CMP0111 behavior Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !6558
* | \ \ Merge topic 'autogen-dep-on-imported-implib-only-target'Brad King2021-09-276-1/+85
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | 895fa3433f cmQtAutoGenInitializer: support IMPLIB-only imported targets 354c1f5628 Tests/RunCMake/Autogen: test CMP0111 behavior Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !6558
| * | | cmQtAutoGenInitializer: support IMPLIB-only imported targetsBen Boeckel2021-09-241-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of using the target name directly (which ends up in the `Ninja` generators querying for the `LOCATION` parameter), wrap up the target name in a `$<TARGET_LINKER_FILE:>` to avoid the query for the unset property.
| * | | Tests/RunCMake/Autogen: test CMP0111 behaviorBen Boeckel2021-09-245-0/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | On Windows, imported shared libraries which only have an `IMPORTED_IMPLIB` set fail if they are depended upon by a target using automoc. Add a test for the behavior of depending upon all imported target types from an automoc-using target.
* | | | Merge topic 'update-curl'Brad King2021-09-2710-48/+66
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5b117bddd0 Merge branch 'upstream-curl' into update-curl c4f76b28dc curl 2021-09-22 (c7aef0a9) 71ea2d607d curl: Update script to get curl 7.79.1 Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !6560
| * \ \ \ Merge branch 'upstream-curl' into update-curlBrad King2021-09-249-47/+65
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | * upstream-curl: curl 2021-09-22 (c7aef0a9)
| | * | | | curl 2021-09-22 (c7aef0a9)Curl Upstream2021-09-249-47/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Code extracted from: https://github.com/curl/curl.git at commit c7aef0a945f9b6fb6d3f91716a21dfe2f4ea635f (curl-7_79_1).
| * | | | | curl: Update script to get curl 7.79.1Brad King2021-09-241-1/+1
| | | | | |
* | | | | | Merge topic 'tutorial_update_stage_2'Brad King2021-09-271-2/+7
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 68e0f72744 Tutorial: Describe placement of add_subdirectory Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6559
| * | | | | | Tutorial: Describe placement of add_subdirectoryJoseph Snyder2021-09-241-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clarify that the process of making a target optional in the second step of the tutorial is further steps to the work done before, not a separate addition to the file. Do this by ensuring that the paragraph which describes the work done mentions the placement and use of the previous command. This is done to avoid duplication of the add_subdirectory call. CMake Issue: #22663
* | | | | | | Merge topic 'iar-lang-spec-detection'Brad King2021-09-274-110/+76
|\ \ \ \ \ \ \ | |_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a9073db736 IAR: update language specification detection Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6458
| * | | | | | IAR: update language specification detectionFelipe Torrezan2021-09-234-110/+76
| | | | | | |
* | | | | | | CMake Nightly Date StampKitware Robot2021-09-271-1/+1
| | | | | | |
* | | | | | | CMake Nightly Date StampKitware Robot2021-09-261-1/+1
| | | | | | |
* | | | | | | Merge topic 'doc-find_package-restructure'Craig Scott2021-09-251-176/+231
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 84e02be51c Help: Restructure the find_package() docs Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Brad King <brad.king@kitware.com> Merge-request: !6542
| * | | | | | | Help: Restructure the find_package() docsCraig Scott2021-09-231-176/+231
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The explanation of the basic and full signatures was interwoven tightly with that of the Module and Config search modes. Config mode is supported by both signatures, which made the structure of the command documentation a bit confusing. Add a section at the start which unambiguously describes the two modes, including the fallback functionality between them. Move the text about this out of the basic signature section, leaving just a description of the basic syntax with a note that it is supported by both search modes. This makes the basic signature section more focused. Drop the Module and Config mode parts of the titles for the basic and full signature sections. Those are now more precisely covered by the new opening section, so the Basic Signature and Full Signature sections are now clearer in what they cover. Swap the order of the Search Procedure and Version Selection sections to improve the logical flow. Also add "Config Mode" to their titles to make it clearer what they apply to. Add a note at the start of both sections to highlight their relationship to the basic and full signatures.
* | | | | | | | CMake Nightly Date StampKitware Robot2021-09-251-1/+1
| |_|_|/ / / / |/| | | | | |
* | | | | | | Merge topic 'irsl-intel-variants'Brad King2021-09-241-0/+4
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 956160bb9a IRSL: Fix search for Windows redist files with Intel Classic compiler Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6557
| * | | | | | | IRSL: Fix search for Windows redist files with Intel Classic compilerBrad King2021-09-231-0/+4
| | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The oneAPI icx/ifx compilers are under `.../windows/bin`. The classic icl/ifort compilers are under `.../windows/bin/intel64`. Add paths to the redist directory relative to both locations. Fixes: #22673
* | | | | | | Merge topic 'mpi-cross'Brad King2021-09-241-1/+35
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0723b2c935 MPI: Add fallback detection code for MPI when cross compiling Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6537
| * | | | | | | MPI: Add fallback detection code for MPI when cross compilingHelmut Grohne2021-09-171-1/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The MPI libraries use a compiler wrapper to automatically inject required flags and libraries into the compiler argument list. However, the wrapper does not support cross-compiling: the wrapper will try to invoke the native compiler which cannot handle the cross architecture MPI libraries and fail. This MR adds some fallback code for this case, which tries to bypass the faulty wrapper and determine the necessary flags and libraries directly from the MPI pkg-config files. The patch tries to be as unintrusive as possible and should not break any existing use-cases. Fixes: #22650
* | | | | | | | Merge branch 'release-3.21'Brad King2021-09-240-0/+0
|\ \ \ \ \ \ \ \ | | |_|_|_|_|_|/ | |/| | | | | |
| * | | | | | | Merge topic 'FindMatlab-r2021b' into release-3.21Brad King2021-09-241-0/+1
| |\ \ \ \ \ \ \ | | |_|_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a013404f43 FindMatlab: Add R2021b => 9.11 version Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6556
* | | | | | | | Merge topic 'FindMatlab-r2021b'Brad King2021-09-241-0/+1
|\ \ \ \ \ \ \ \ | | |/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a013404f43 FindMatlab: Add R2021b => 9.11 version Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6556
| * | | | | | | FindMatlab: Add R2021b => 9.11 versionMichael Hirsch2021-09-231-0/+1
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | R2021b released 09/22/2021.
* | | | | | | CMake Nightly Date StampKitware Robot2021-09-241-1/+1
| |_|/ / / / |/| | | | |
* | | | | | Merge topic 'iar-asm-deduplication'Brad King2021-09-232-58/+30
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b1727b8a7e IAR: ASM module code deduplication Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6553
| * | | | | | IAR: ASM module code deduplicationFelipe Torrezan2021-09-232-58/+30
| | | | | | |
* | | | | | | Merge topic 'vs2008-no-pch-flag'Brad King2021-09-233-0/+3
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a2b782bbc1 VS: Map /Y- flag to not use precompiled headers with VS 2008 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6548
| * | | | | | | VS: Map /Y- flag to not use precompiled headers with VS 2008Luigi Fiorentini2021-09-223-0/+3
| | | | | | | |
* | | | | | | | Merge topic 'matlab_versions_natural_sort'Brad King2021-09-231-2/+2
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2f43ba5073 FindMatlab: Sort available Matlab versions using natural comparison. Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6555
| * | | | | | | | FindMatlab: Sort available Matlab versions using natural comparison.Vincent Newsum2021-09-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On Windows, when FindMatlab.cmake searches the registry for installed Matlab versions, it sorts these versions alphabetically. Since Matlab 2021a (version 9.10) came out this became a problem as now version 9.10 is placed after 9.1 instead of after a higher version less than 9.10. The result is that FindMatlab doesn't return the highest version by default. This fix uses the natural sort comparison which was introduced in CMake 3.18.
* | | | | | | | | Merge topic 'iar-rl78-xlink'Brad King2021-09-232-4/+12
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8954f93543 IAR: emit fatal message for RL78 XLINK Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6552
| * | | | | | | | | IAR: emit fatal message for RL78 XLINKFelipe Torrezan2021-09-212-4/+12
| | |_|/ / / / / / | |/| | | | | | |
* | | | | | | | | Merge topic 'iar-riscv-binutils'Brad King2021-09-231-1/+1
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7c3684b356 IAR: fix assembler detection for RISC-V Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6551
| * | | | | | | | | IAR: fix assembler detection for RISC-VFelipe Torrezan2021-09-211-1/+1
| |/ / / / / / / /
* | | | | | | | | Merge topic 'IAR-executable-suffix'Brad King2021-09-231-2/+2
|\ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 9254e7ddf2 IAR: Use same executable suffix as try_compile Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6546
| * | | | | | | | IAR: Use same executable suffix as try_compileRainer Keller2021-09-211-2/+2
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There was a mismatch in the executable suffix between the compiler detection and try_compile. This resulted in the generated executable having a different suffix than what try_compile was looking for. The IAR module is changed to use the same suffix as try_compile. Fixes: #22567