summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* FortranCInterface: Reuse primary detection results in VERIFY functionBrad King2023-05-011-0/+1
| | | | | | | Since commit 14f7a043e3 (Teach FortranCInterface to load outside results, 2009-08-24, v2.8.0~262) we support passing the detection results into `try_compile` by forwarding `FortranCInterface_BINARY_DIR`. Use this in `FortranCInterface_VERIFY` to avoid repeating detection.
* Merge topic 'CMake-uses-cmList-class'Brad King2023-05-0163-651/+644
|\ | | | | | | | | | | | | | | 241304190f CMake code rely on cmList class for CMake lists management (part. 2) 87fe031a07 cmList class: various enhancements Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8441
| * CMake code rely on cmList class for CMake lists management (part. 2)Marc Chevrier2023-04-2960-497/+398
| |
| * cmList class: various enhancementsMarc Chevrier2023-04-298-157/+249
| |
* | Merge topic 'tutorial-iface-order'Brad King2023-05-017-200/+225
|\ \ | | | | | | | | | | | | | | | | | | c6a426198a Tutorial: Move Step4-Ex1 to Step3-Ex2 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8417
| * | Tutorial: Move Step4-Ex1 to Step3-Ex2Paul Choisel2023-04-287-200/+225
| | | | | | | | | | | | | | | During the training, we talk about INTERFACE libraries just before Step3 so it makes more sense to do the exercise related to them in Step3
* | | Merge topic 'cpack-inno-setup'Brad King2023-05-0122-7/+2107
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1d6db66179 CPack: Add Inno Setup generator 9b0dc652ff ci: Provide Inno Setup tools to some Windows CI jobs Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8399
| * | | CPack: Add Inno Setup generatorJannik Alber2023-04-2818-7/+2081
| | | |
| * | | ci: Provide Inno Setup tools to some Windows CI jobsBrad King2023-04-274-0/+26
| | | |
* | | | CMake Nightly Date StampKitware Robot2023-05-011-1/+1
| | | |
* | | | CMake Nightly Date StampKitware Robot2023-04-301-1/+1
| | | |
* | | | CMake Nightly Date StampKitware Robot2023-04-291-1/+1
| |_|/ |/| |
* | | Merge topic 'FindDoxygen-custom-config-file'Brad King2023-04-282-4/+21
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 5ee19d5746 FindDoxygen: Optionally use custom config file Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8439
| * | | FindDoxygen: Optionally use custom config fileLe Go2023-04-272-4/+21
| |/ /
* | | Merge topic 'ignore_unity_suspicious_include'Brad King2023-04-281-0/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 485256f2d0 Unity: Suppress clang-tidy 'bugprone-suspicious-include' warning Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !8437
| * | | Unity: Suppress clang-tidy 'bugprone-suspicious-include' warningSylvain Joubert2023-04-271-0/+1
| |/ / | | | | | | | | | | | | | | | Unity builds intentionally include entire source files. Fixes: #24857
* | | Merge topic 'add-missing-keyword-to-vim'Brad King2023-04-281-0/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | f4d2772049 vim: Add missing RELATIVE keyword for FILE command Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8440
| * | | vim: Add missing RELATIVE keyword for FILE commandJoris Clement2023-04-271-0/+1
| |/ /
* | | Merge topic 'modules-if-deref'Brad King2023-04-281-3/+3
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 21e13f2416 CMakeDetermineCXXCompiler: Avoid if() quoted auto-dereference Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8438
| * | | CMakeDetermineCXXCompiler: Avoid if() quoted auto-dereferenceBrad King2023-04-271-3/+3
| |/ / | | | | | | | | | | | | | | | | | | This was missed by commit 29c3edb87a (Avoid if() quoted auto-dereference, 2014-10-14, v3.2.0-rc1~501^2). Fixes: #24859
* | | Merge topic 'update_FindCUDAToolkit_nvrtc_notes'Brad King2023-04-281-1/+0
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 0e0eb12918 FindCUDAToolkit: Update nvrtc section to clarify a static version exists Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8436
| * | | FindCUDAToolkit: Update nvrtc section to clarify a static version existsRobert Maynard2023-04-271-1/+0
| | | | | | | | | | | | | | | | Fixes #24798
* | | | Merge topic 'iar-silent-flag'Brad King2023-04-281-3/+7
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 01e944128d IAR: Move linker silencing flag to CMAKE_EXE_LINKER_FLAGS Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8421
| * | | | IAR: Move linker silencing flag to CMAKE_EXE_LINKER_FLAGSFelipe Torrezan2023-04-261-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The IAR linker silencer flag was previously hardcoded in `CMAKE_${lang}_LINKER_EXECUTABLE`. Move the flag to a place that is under the end user's control. The default behavior (silenced linker) is not changed. Fixes: #24828
* | | | | CMake Nightly Date StampKitware Robot2023-04-281-1/+1
| |_|/ / |/| | |
* | | | Merge topic 'ninja-nvhpc-fortran-Werror'Brad King2023-04-272-24/+2
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0f6a1dd3ed Ninja: Revert "Exclude NVHPC -Werror flags during Fortran preprocessing" Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8435
| * | | | Ninja: Revert "Exclude NVHPC -Werror flags during Fortran preprocessing"Brad King2023-04-262-24/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Revert commit 6b58cdd4cf (Ninja: Exclude NVHPC -Werror flags during Fortran preprocessing, 2023-04-04). Since commit 9d40f01442 (NVHPC: Use -Werror for COMPILE_OPTIONS_WARNING_AS_ERROR, 2023-04-13), `nvfortran` can handle the plain `-Werror` flag during preprocessing. Issue: #24665
* | | | | Merge topic 'ExternalProject-relative-git-urls'Craig Scott2023-04-2723-1/+575
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 550f63447d ExternalProject/FetchContent: Support relative remote URLs Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7988
| * | | | | ExternalProject/FetchContent: Support relative remote URLsChris Wright2023-04-2623-1/+575
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Teach `ExternalProject_Add` and `FetchContent_Declare` to resolve relative remote URLs provided via `GIT_REPOSITORY`. Add policy CMP0150 to maintain compatibility. Fixes: #24211 Co-Authored-By: Craig Scott <craig.scott@crascit.com>
* | | | | | Merge topic 'vs-show-cmake-files'Brad King2023-04-277-13/+326
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | df58dbb0e9 VS: Add CMake input files to ZERO_CHECK 659e9ae937 cmGlobalVisualStudio8Generator: Collect CMake input files earlier Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8260
| * | | | | | VS: Add CMake input files to ZERO_CHECKAlexander Neundorf2023-04-257-1/+315
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add all cmake input files to the `ZERO_CHECK` project. Place files under `CMAKE_SOURCE_DIR` in a folder structure matching the directory structure. This way they are easier to find, and Visual Studio does not close them when reloading the project. Fixes: #24557
| * | | | | | cmGlobalVisualStudio8Generator: Collect CMake input files earlierAlexander Neundorf2023-04-251-12/+11
| | | | | | |
* | | | | | | Merge topic 'orkun_21455_26_04_2023'Brad King2023-04-276-2/+57
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 315b13432c Autogen: Update test comments about Qt versions 64b44b362b Autogen: Add AUTORCC test /w AUTOGEN_BUILD_DIR Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8434
| * | | | | | | Autogen: Update test comments about Qt versionsOrkun Tokdemir2023-04-261-2/+2
| | | | | | | |
| * | | | | | | Autogen: Add AUTORCC test /w AUTOGEN_BUILD_DIROrkun Tokdemir2023-04-266-0/+55
| | |_|/ / / / | |/| | | | |
* | | | | | | Merge topic 'vs-android-auto-arch'Brad King2023-04-271-1/+14
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ca6e81a31f VS/Android: Deduce processor type from CMAKE_GENERATOR_PLATFORM Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8425
| * | | | | | | VS/Android: Deduce processor type from CMAKE_GENERATOR_PLATFORMMichael Karcher2023-04-261-1/+14
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | Closes: #24839
* | | | | | | Merge topic 'fix-short-path'Brad King2023-04-271-1/+6
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a368a59467 Windows: Tolerate GetShortPathNameW failure Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8432
| * | | | | | | Windows: Tolerate GetShortPathNameW failureOldřich Jedlička2023-04-261-1/+6
| | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This function is used by NMake Makefile generator, but when shortening path fails, it previously returned an empty string. `ERROR_ACCESS_DENIED` is returned for paths within `C:\Program Files\WindowsApps`, which is a special folder with limited access rights. It looks like this is [by design](https://superuser.com/a/1730061/213587). Fixes: #24853
* | | | | | | Merge topic 'ci-intel-compiler'Brad King2023-04-271-0/+14
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 710d6515ac gitlab-ci: add jobs testing Intel 2023.1.0 compilers on Linux Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8433
| * | | | | | | gitlab-ci: add jobs testing Intel 2023.1.0 compilers on LinuxBrad King2023-04-261-0/+14
| | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | Note that the classic compiler version is 2021.9.0, but we still have it in the 2023.1.0 base image.
* | | | | | | Merge topic 'preset-includes-macro-expansion'Brad King2023-04-2711-19/+106
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f552ba6e6d presets: add support for macro expansion to includes 1df24df01f presets: Fix encoding of env/penv macro expansion on Windows Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8255
| * | | | | | | presets: add support for macro expansion to includesZoran Angelov2023-04-2611-15/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Only `$penv{}` can be expanded when processing includes.
| * | | | | | | presets: Fix encoding of env/penv macro expansion on WindowsBrad King2023-04-261-4/+3
| | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | Look up environment variables using a wide-character API on Windows, and convert their value to our internal UTF-8 encoding.
* | | | | | | CMake Nightly Date StampKitware Robot2023-04-271-1/+1
| |/ / / / / |/| | | | |
* | | | | | Merge topic 'iwyu_errors'Brad King2023-04-268-3/+28
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fcacc319d9 IWYU: Return error code if user enables error reporting Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8406
| * | | | | | IWYU: Return error code if user enables error reportingAshish Sadanandan2023-04-258-3/+28
| | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously CMake ignored the return code from iwyu because old versions of the tool would exit with an error code even when no header include violations were detected. The iwyu project has since changed this behavior, so the tool no longer returns an error code unless the user enables error reporting via command line arguments. Behavior seen with iwyu version 0.19 Source file with missing includes: - Case 1: iwyu arguments: - return code: 0 - output: <report of all missing includes> - Case 2: iwyu arguments: `-Xiwyu --error` - return code: 1 - output: <report of all missing includes> Source file with no missing includes: - Case 1: iwyu arguments: - return code: 0 - output: `(/path/to/file.cc has correct #includes/fwd-decls)` - Case 2: iwyu arguments: `-Xiwyu --error` - return code: 0 - output: `(/path/to/file.cc has correct #includes/fwd-decls)` Teach CMake to return the iwyu return code if the user has invoked the tool with any of these command line arguments included: - `--error[=N]` - `--error_always[=N]` Fixes: #24066
* | | | | | Merge topic 'vs2022-android'Brad King2023-04-264-17/+16
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 16d8b65bc0 VS/Android: Use safe API level when detecting the NDK directory f7af10100c VS/Android: Detect full NDK root instead of sysroot 850ee280e0 VS/Android: Set API level explicitly during compiler identification 5d5b6c741d VS/Android: Do not specify Windows Runtime library type during compiler id e78abf94e3 VS/Android: Use ApplicationTypeRevision 3.0 in VS2022 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8426
| * | | | | | VS/Android: Use safe API level when detecting the NDK directoryMichael Karcher2023-04-251-0/+1
| | | | | | |
| * | | | | | VS/Android: Detect full NDK root instead of sysrootMichael Karcher2023-04-252-14/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Visual Studio always uses a complete NDK and not a standalone toolchain. Let CMake handle the NDK and related logic correctly, avoid trying to find the standalone toolchain version from the unified clang toolchain in newer NDKs.