summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'modules-use-new-try_compile-signature'Brad King2022-09-1440-80/+81
|\ | | | | | | | | | | | | 2edf0fc6d7 Modules: Use new keyword-dispatched try_compile signature Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7656
| * Modules: Use new keyword-dispatched try_compile signatureMatthew Woehlke2022-09-1440-80/+81
| | | | | | | | | | | | | | | | | | | | | | Modify most of the modules that ship with CMake to use the new try_compile / try_run signatures added by commit aa9220d3a0 (try_compile: Add keyword-dispatched signature, 2022-09-02). This improves debugging by each invocation using its own directory so that the results of multiple invocations can be retained. This does not cover any invocations which provide an entire project, as that flavor of try_compile has not yet been updated.
* | Merge topic 'cmake-presets-package-unsupported-error'Brad King2022-09-142-2/+2
|\ \ | | | | | | | | | | | | | | | | | | | | | 3546657cc7 CMakePresets.json: Fix error message for unsupported package presets Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7669
| * | CMakePresets.json: Fix error message for unsupported package presetsKyle Edwards2022-09-132-2/+2
| | |
* | | CMake Nightly Date StampKitware Robot2022-09-141-1/+1
| | |
* | | Merge branch 'release-3.24'Brad King2022-09-131-3/+3
|\ \ \ | |/ / |/| |
| * | CMake 3.24.2v3.24.2Brad King2022-09-132-4/+4
| | |
* | | Merge topic 'FindMPI-more-robust-conditionals'Brad King2022-09-131-70/+70
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 08dece8b18 FindMPI: remove unnecessary variable expansions in conditionals 1edc2f337f FindMPI: match full language names when "simplifying" 93b5bdb8b4 FindMPI: quote literal values Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !7666
| * | | FindMPI: remove unnecessary variable expansions in conditionalsBen Boeckel2022-09-121-53/+53
| | | |
| * | | FindMPI: match full language names when "simplifying"Ben Boeckel2022-09-121-2/+2
| | | | | | | | | | | | | | | | | | | | There is no reason `CSharp` should go down this codepath (assuming it ever gets here in the first place).
| * | | FindMPI: quote literal valuesBen Boeckel2022-09-121-19/+19
| | |/ | |/| | | | | | | | | | | | | | | | Some projects accidentally end up doing the equivalent of `set(0 1)` which makes things work very poorly here. Be more defensive. See: #23954
* | | Merge topic 'fix-commandline-test-with-symlinks'Brad King2022-09-131-1/+6
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7b62e40a64 Tests: Fix RunCMake.CommandLine test in unusual environments Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7660
| * | | Tests: Fix RunCMake.CommandLine test in unusual environmentsMatthew Woehlke2022-09-121-1/+6
| |/ / | | | | | | | | | | | | | | | Modify `Tests/RunCMake/CommandLine/P_working-dir.cmake` to not spuriously fail in environments when the build directory's nominal path is not canonicalized (i.e. `realpath(BINDIR) != BINDIR`).
* | | Merge topic 'ExternalProject-cmake-install'Brad King2022-09-131-4/+5
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 66b5d51f38 ExternalProject: Install CMake projects using 'cmake --install' Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !7655
| * | | ExternalProject: Install CMake projects using 'cmake --install'Harry Mallon2022-09-121-4/+5
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | In some cases, `cmake --install .` implements additional semantics over just `cmake --build . --target install`. For example, using the Xcode "new build system" with `IOS_INSTALL_COMBINED` requires special support from `cmake --install` beyond building the `install` target. Fixes: #23946
* | | Merge topic 'LINUX-host'Brad King2022-09-135-0/+15
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | caffb15d09 LINUX: Set CMAKE_HOST_LINUX variable when running on a Linux host Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Acked-by: hinell <al.neodim@gmail.com> Merge-request: !7661
| * | | LINUX: Set CMAKE_HOST_LINUX variable when running on a Linux hostCristian Adam2022-09-095-0/+15
| | | | | | | | | | | | | | | | Relates: #23840
* | | | Merge topic 'ci-pwsh-cleanup'Brad King2022-09-135-11/+18
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 94b27ccc36 ci: add support for gitlab-runner 'shell = pwsh' executor de32c8ddbe ci: start every windows job with custom environment script 906b1a0bc4 ci: allow powershell variables assigned in env scripts to persist Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Ben Boeckel <ben.boeckel@kitware.com> Merge-request: !7667
| * | | | ci: add support for gitlab-runner 'shell = pwsh' executorBrad King2022-09-124-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | Run powershell child scripts using the same powershell tool as the parent script.
| * | | | ci: start every windows job with custom environment scriptBrad King2022-09-121-0/+6
| | | | |
| * | | | ci: allow powershell variables assigned in env scripts to persistBrad King2022-09-124-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Load env scripts with `.` sourcing instead of `Invoke-Expression`. This allows powershell variables to persist, much like bash. Leave helper script loading unchanged, as those scripts may set powershell variables that we do not want to persist.
* | | | | CMake Nightly Date StampKitware Robot2022-09-131-1/+1
|/ / / /
* | | | Merge topic 'try_compile_correctly_compute_exec_name'Brad King2022-09-1211-69/+65
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0c141b0393 try_compile: Record output location instead of reverse computing it Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7626
| * | | | try_compile: Record output location instead of reverse computing itRobert Maynard2022-09-0711-69/+65
| | | | | | | | | | | | | | | | | | | | Fixes #23887, #23942, #20163, #18288
* | | | | Merge topic 'manual-toolchain'Brad King2022-09-122-33/+46
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 004568a9f3 Help: Add links between cmake-{toolchains,presets}(7) Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7650
| * | | | | Help: Add links between cmake-{toolchains,presets}(7)Hinell2022-09-092-33/+46
| |/ / / / | | | | | | | | | | | | | | | Also improve formatting and add `versionadded` markup.
* | | | | Merge branch 'release-3.24'Brad King2022-09-120-0/+0
|\ \ \ \ \ | | |_|_|/ | |/| | |
| * | | | Merge topic 'fetchcontent-redirect-version-exact' into release-3.24Brad King2022-09-123-4/+14
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 48b380c961 FetchContent: Ignore EXACT for redirected find_package() calls Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7665
* | \ \ \ \ Merge topic 'fetchcontent-redirect-version-exact'Brad King2022-09-123-4/+14
|\ \ \ \ \ \ | | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | 48b380c961 FetchContent: Ignore EXACT for redirected find_package() calls Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7665
| * | | | | FetchContent: Ignore EXACT for redirected find_package() callsCraig Scott2022-09-113-4/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When FetchContent_MakeAvailable() populates a dependency for which find_package() integration is enabled, all future calls to find_package() MUST succeed using the contents of the redirection directory. The generated config version file was not handling calls where the EXACT keyword was given, resulting in such calls rejecting the redirection directory's contents and continuing its search. It is not allowed to do that. Fix the generated file to also set PACKAGE_VERSION_EXACT to true so that calls with EXACT now accept it, as was originally intended. Fixes: #23950
* | | | | | Merge branch 'release-3.24'Brad King2022-09-120-0/+0
|\ \ \ \ \ \ | | |/ / / / | |/| | | |
| * | | | | Merge topic 'FortranCInterface-LLVMFlang' into release-3.24Brad King2022-09-122-3/+5
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0f5b6dd215 FortranCInterface: Add support for LLVMFlang mangling Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7658
* | \ \ \ \ \ Merge topic 'FortranCInterface-LLVMFlang'Brad King2022-09-122-3/+5
|\ \ \ \ \ \ \ | | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0f5b6dd215 FortranCInterface: Add support for LLVMFlang mangling Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7658
| * | | | | | FortranCInterface: Add support for LLVMFlang manglingGilles Gouaillardet2022-09-092-3/+5
| | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The following `module.f90` file module mymodule contains subroutine mysub() end subroutine end module when compiled with `flang-new` (from LLVM 15.0.0) generate the `_QMmymodulePmysub` symbol. $ flang-new -c module.f90 $ nm module.o 0000000000000000 T _QMmymodulePmysub This commit fixes the regular expressions accordingly.
* | | | | | CMake Nightly Date StampKitware Robot2022-09-121-1/+1
| | | | | |
* | | | | | Merge branch 'release-3.24'Craig Scott2022-09-110-0/+0
|\ \ \ \ \ \ | | |/ / / / | |/| | | |
| * | | | | Merge topic 'fetchcontent-unset-wrong-nested-var' into release-3.24Craig Scott2022-09-111-1/+1
| |\ \ \ \ \ | | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | d9a6e0ffc8 FetchContent: Fix unsetting wrong variable name after provider returns Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7663
* | | | | | Merge topic 'fetchcontent-unset-wrong-nested-var'Craig Scott2022-09-111-1/+1
|\ \ \ \ \ \ | | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | d9a6e0ffc8 FetchContent: Fix unsetting wrong variable name after provider returns Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7663
| * | | | | FetchContent: Fix unsetting wrong variable name after provider returnsCraig Scott2022-09-101-1/+1
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The unset() command was using __cmake_contentNameLower before that variable was restored from the __cmake_fcCurrentVarsStack. That means if there had been a nested call to FetchContent_MakeAvailable(), the wrong variable name would have been cleared (the nested name instead of the one from the current call). That would have left the variable set upon return, blocking the dependency provider from seeing any further calls to FetchContent_MakeAvailable() in the current variable scope or below for the current dependency.
* | | | | CMake Nightly Date StampKitware Robot2022-09-111-1/+1
| | | | |
* | | | | CMake Nightly Date StampKitware Robot2022-09-101-1/+1
| |_|/ / |/| | |
* | | | Merge topic 'fphsa-error-message-empty-version-var'Brad King2022-09-095-3/+19
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8f50f135ae FPHSA: Improve error message when VERSION_VAR is empty or has been unset() Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7527
| * | | | FPHSA: Improve error message when VERSION_VAR is empty or has been unset()Andrea Pappacoda2022-09-075-3/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, when `VERSION_VAR` is set but empty, FPHSA emitted a confusing error message, saying that the package was found but of an unsuitable version "". Fix the error message to state that the package was not found. Fixes: #23807
* | | | | Merge topic 'BSD'Brad King2022-09-0915-46/+37
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1ea8b8ed86 BSD: Set CMAKE_HOST_BSD variable on a BSD host 288f72efea BSD: Only use BSD as variable for target BSD system Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7648
| * | | | | BSD: Set CMAKE_HOST_BSD variable on a BSD hostCristian Adam2022-09-055-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also the BSD variable will be set in CMake scripting mode (-P). Relates: #23853
| * | | | | BSD: Only use BSD as variable for target BSD systemCristian Adam2022-09-0512-46/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of having multiple boolean variables, we only have one string variable: BSD with the name of the target BSD system. Relates: #23853
* | | | | | Merge topic 'useswig-perl-module'Marc Chevrier2022-09-092-0/+6
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5156eb5613 UseSWIG: track generated Perl module files Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7654
| * | | | | | UseSWIG: track generated Perl module filesThomas Weißschuh2022-09-082-0/+6
| | |_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | This makes sure the generated file is cleaned properly and allows to create dependencies on it.
* | | | | | Merge branch 'release-3.24'Brad King2022-09-090-0/+0
|\ \ \ \ \ \ | | |_|_|/ / | |/| | | |
| * | | | | Merge topic 'fetchcontent-extra' into release-3.24Brad King2022-09-091-4/+4
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 629d106c5e Help: Fix typo in FetchContent example, extras should read extra Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: hinell <al.neodim@gmail.com> Merge-request: !7657