summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* CYGWIN: Drop pre-2.8.4 compatibility mode CMAKE_LEGACY_CYGWIN_WIN32Brad King2023-01-191-45/+0
| | | | | | | | | | Prior to CMake 2.8.4 (released in 2011), we defined `WIN32` on CYGWIN. That was removed, but an undocumented `CMAKE_LEGACY_CYGWIN_WIN32` compatibility mode was left to help projects transition. Only projects that do not require at least 2.8.4 as their minimum CMake version need the compatibility mode. We've also long warned about projects that do not require at least 2.8.12, so it is now reasonable to remove the legacy compatibility mode.
* Merge topic 'configure-log'Brad King2023-01-1945-344/+97
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | f6ed2585e5 Modules: Record system inspection steps in the configure log 0f688386ea Modules: Drop redundant check logging to CMakeOutput.log and CMakeError.log ecc26f98eb UsewxWidgets: Remove leftover debugging code 874c2e1198 FindQt4: Drop outdated advice to look at CMakeError.log on failure a80465bcad GHS: Drop debugging message from log 9199449687 CompileFeatures: Warn explicitly when feature detection binary is not found 24ccc8c3c9 CompilerId: Restore logging of failed identifications 95976514f6 Tests: Avoid using CMake{Output,Error}.log files Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8089
| * Modules: Record system inspection steps in the configure logBrad King2023-01-1811-47/+55
| | | | | | | | | | | | | | | | Replace old-style `file(APPEND .../CMake{Output,Error}.log)` logging with calls to `message(CONFIGURE_LOG)` to record the steps in the `CMakeConfigureLog.yaml` configure log instead. Issue: #23200
| * Modules: Drop redundant check logging to CMakeOutput.log and CMakeError.logBrad King2023-01-1835-260/+31
| | | | | | | | | | | | | | | | | | | | `try_compile` and `try_run` now automatically log checks using them to `CMakeConfigureLog.yaml`. Add `LOG_DESCRIPTION` arguments to some `try_compile` calls to replace the description previously written to the old logs. Issue: #23200
| * UsewxWidgets: Remove leftover debugging codeBrad King2023-01-181-29/+0
| |
| * FindQt4: Drop outdated advice to look at CMakeError.log on failureBrad King2023-01-181-1/+1
| | | | | | | | The find module does not write information to the log.
| * GHS: Drop debugging message from logBrad King2023-01-181-2/+0
| |
| * CompileFeatures: Warn explicitly when feature detection binary is not foundBrad King2023-01-181-4/+7
| | | | | | | | This step is not normally expected to fail, so warn instead of logging it.
| * CompilerId: Restore logging of failed identificationsBrad King2023-01-181-2/+4
| | | | | | | | | | | | Changes in commit 9c5bd7fe3a (CompilerId: Output errors from all attempts at detection, 2022-08-16, v3.25.0-rc1~290^2) accidentally stopped logging failed compiler identification build output.
* | Merge topic 'FindLibLZMA_quote'Brad King2023-01-191-1/+1
|\ \ | | | | | | | | | | | | | | | | | | b4be607701 FindLibLZMA: Fix failure when no include directories are needed Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8088
| * | FindLibLZMA: Fix failure when no include directories are neededEven Rouault2023-01-181-1/+1
| |/ | | | | | | | | Quote the value of `INTERFACE_INCLUDE_DIRECTORIES` to ensure `set_target_properties` gets matching property/value pairs.
* | Revise C++ coding style using clang-format-15Kitware Robot2023-01-185-5/+6
|/ | | | | | | | | | | | | | Run the `clang-format.bash` script to update all our C and C++ code to a new style defined by `.clang-format`. Use `clang-format` version 15. * If you reached this commit for a line in `git blame`, re-run the blame operation starting at the parent of this commit to see older history for the content. * See the parent commit for instructions to rebase a change across this style transition commit. Fixes: #24315
* Merge topic 'swift-ios'Brad King2023-01-181-3/+6
|\ | | | | | | | | | | | | | | 44abf24848 Swift: Add comment about where platform-specific flags should go 9a013c9e9d Swift: Use macOS-style linker flags on iOS, tvOS, and watchOS too Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8070
| * Swift: Add comment about where platform-specific flags should goBrad King2023-01-171-1/+2
| |
| * Swift: Use macOS-style linker flags on iOS, tvOS, and watchOS tooCraig Hutchinson2023-01-171-2/+4
| | | | | | | | | | | | Without this, building a shared Swift library with `CMAKE_SYSTEM_NAME=iOS` produces the error `ld: unknown option: -soname`. iOS is an Apple platform, and so should use the `-install_name` option.
* | Merge topic 'docpc'Brad King2023-01-181-3/+9
|\ \ | | | | | | | | | | | | | | | | | | 93624e4c3d Help:ProcessorCount: recommend cmake_host_system_information Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8077
| * | Help:ProcessorCount: recommend cmake_host_system_informationscivision2023-01-161-3/+9
| |/ | | | | | | closes #24277
* | Merge topic 'IntelLLVM-c++23'Brad King2023-01-182-6/+18
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | 4331f7b4bf IntelLLVM: Add provisional flags for C23 and C++23 42ca6416af IntelLLVM: Replace -Qstd= with -Qstd: on Windows Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Alex <leha-bot@yandex.ru> Merge-request: !8064
| * | IntelLLVM: Add provisional flags for C23 and C++23scivision2023-01-162-0/+12
| | |
| * | IntelLLVM: Replace -Qstd= with -Qstd: on Windowsscivision2023-01-161-6/+6
| |/ | | | | | | | | | | The latter is the documented form [1]. [1] https://www.intel.com/content/www/us/en/develop/documentation/oneapi-dpcpp-cpp-compiler-dev-guide-and-reference/top/compiler-reference/compiler-options/language-options/std-qstd.html
* | Source: Fix a few typosVitaly Stakhovsky2023-01-173-5/+5
|/
* Merge topic 'FindMatlab-macos-rosetta'Brad King2023-01-131-32/+17
|\ | | | | | | | | | | | | | | 1bc9b0f256 FindMatlab: accommodate Matlab running under Rosetta 8dcd14bb87 FindMatlab: simplify mexext find logic Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8063
| * FindMatlab: accommodate Matlab running under Rosettascivision2023-01-121-13/+14
| | | | | | | | fixes #24312
| * FindMatlab: simplify mexext find logicscivision2023-01-121-19/+3
| | | | | | | | This eliminates an explicit for() loop
* | Merge topic 'deprecate-findunixcmds'Brad King2023-01-131-0/+4
|\ \ | | | | | | | | | | | | | | | | | | 0847682c47 FindUnixCommands: Deprecate in favor of cmake -E Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8061
| * | FindUnixCommands: Deprecate in favor of cmake -EFeRD (Frank Dana)2023-01-121-0/+4
| | | | | | | | | | | | | | | | | | `${CMAKE_COMMAND} -E` subcommands are cross-platform replacements. Fixes: #24263
* | | Merge topic 'implicit-includes'Brad King2023-01-131-2/+3
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 607bccb4ef Restore implicit include directory extraction for adaptive relative paths Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8067
| * | | Restore implicit include directory extraction for adaptive relative pathsBrad King2023-01-121-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update the logic added by commit ef41d49812 (Fix implicit include directory extraction for adaptive relative paths, 2019-04-08, v3.14.2~5^2) to account for the new `try_compile` work directory used for the ABI check since commit 2edf0fc6d7 (Modules: Use new keyword-dispatched try_compile signature, 2022-09-13, v3.25.0-rc1~144^2). Paths relative to the work directory will now have one more `../` in them, so update the test data to match. Fixes: #24279
* | | | Merge topic 'IntelLLVM-msvc-no-cxx11'Brad King2023-01-131-2/+2
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 88f9fdcb03 IntelLLVM: Avoid unnecessary -Qstd=c++11 flag on Windows Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8069
| * | | | IntelLLVM: Avoid unnecessary -Qstd=c++11 flag on WindowsBrad King2023-01-121-2/+2
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | The IntelLLVM compiler, for compatibility with MSVC on Windows, always runs with support for at least C++14. The `-Qstd=c++11` flag just causes a warning that it is unused. Fixes: #24316
* | | | Merge topic 'IntelLLVM-no-icpx-on-Windows'Brad King2023-01-131-1/+7
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 870d89627f Help: Clarify compiler id distinction between Intel Classic and IntelLLVM ea4cfb3b53 Merge branch 'backport-IntelLLVM-no-icpx-on-Windows' 8834e4d6a5 IntelLLVM: Avoid finding not-yet-supported icpx on Windows Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8041
| * | | Merge branch 'backport-IntelLLVM-no-icpx-on-Windows'Brad King2023-01-121-1/+7
| |\ \ \ | | |/ / | |/| |
| | * | IntelLLVM: Avoid finding not-yet-supported icpx on WindowsMichael Hirsch2023-01-121-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Intel oneAPI 2023.0 added the `icpx` compiler front-end on Windows. It uses a GNU-like command-line, and is not yet supported by CMake. Avoid finding `icpx` as the CXX compiler on Windows until support is added. Fixes: #24266 Issue: #24314
* | | | Merge topic 'bug/cuda-toolkit-support-arm64-sbsa'Brad King2023-01-121-19/+22
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 743d4181b4 FindCUDAToolkit: Support cross-compilation to sbsa-linux e60fa80fbe FindCUDAToolkit: Handle CUDA::nvToolsExt not existing Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8057
| * | | | FindCUDAToolkit: Support cross-compilation to sbsa-linuxRobert Maynard2023-01-111-18/+21
| | | | | | | | | | | | | | | | | | | | Fixes #24192
| * | | | FindCUDAToolkit: Handle CUDA::nvToolsExt not existingRobert Maynard2023-01-111-1/+1
| | |_|/ | |/| |
* | | | Merge topic 'cuda-12'Brad King2023-01-121-1/+7
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4d90f65b24 CUDA: Update set of architectures supported by CUDA 12 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8031
| * | | | CUDA: Update set of architectures supported by CUDA 12xiny2023-01-111-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove architectures 35 and 37 for CUDA 12. Architecture 21 is not in CMAKE_CUDA_ARCHITECTURES_ALL_MAJOR so there is no need to remove it.
* | | | | Merge topic 'FindwxWindows-typos'Brad King2023-01-121-1/+1
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 256262876b FindwxWindows: Fix comment typos Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8052
| * | | | | FindwxWindows: Fix comment typoslilinjie2023-01-111-1/+1
| | |/ / / | |/| | |
* | | | | Merge topic 'frontend-variant-always'Brad King2023-01-121-1/+5
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e4fcdfa301 Set CMAKE_<LANG>_COMPILER_FRONTEND_VARIANT on single-variant compilers Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8036
| * | | | | Set CMAKE_<LANG>_COMPILER_FRONTEND_VARIANT on single-variant compilersRussell Greene2023-01-111-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `GNU` and `MSVC` compilers obviously use their own front-end command-line style. Also set this for `AppleClang`. Fixes: #24232
* | | | | | Merge topic 'findmatlab_system_include'Brad King2023-01-121-1/+1
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6683c20f22 FindMatlab: Add SYSTEM include flag for matlab_add_mex Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8039
| * | | | | | FindMatlab: Add SYSTEM include flag for matlab_add_mexJorrit Olthuis2023-01-111-1/+1
| | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the `SYSTEM` flag for include directories provided by MATLAB, as the the pragmas used are not compatible with GCC and generate a warning. Fixes: #24166
* | | | | | Merge topic 'FindBoost-1.81'Brad King2023-01-121-2/+3
|\ \ \ \ \ \ | |/ / / / / |/| | | / / | | |_|/ / | |/| | | | | | | | | | | | | | | | | | a97032c4e7 FindBoost: Add Boost 1.81 support Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Christoph GrĂ¼ninger <foss@grueninger.de> Merge-request: !8056
| * | | | FindBoost: Add Boost 1.81 supportleha-bot2023-01-111-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update the list of known versions. There is a new header-only library, Boost.URL. It has no dependencies and has a core header `<boost/url.hpp>`. Run the command cmake -DBOOST_DIR=/path/to/boost_1_81_0 \ -P Utilities/Scripts/BoostScanDeps.cmake to extract dependencies from the 1.81.0 source tree. They are the same as 1.80's dependencies, so just update the version check for warning about newer versions.
* | | | | Help: Enhance UseSWIG module documentationFeRD (Frank Dana)2022-12-221-15/+47
| |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | * Add section headings * Add TOC (HTML only) * Move `swig_link_libraries()` to "Deprecated commands" section at end of docs, document as deprecated in favor of `target_link_libraries()` in all cases.
* | | | Merge topic 'doc-SYSTEM'Craig Scott2022-12-191-6/+11
|\ \ \ \ | |/ / / | | / / | |/ / |/| | | | | | | | dfab263825 Help: Clarify and update SYSTEM-related docs Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8027
| * | Help: Clarify and update SYSTEM-related docsCraig Scott2022-12-171-6/+11
| | |
* | | Merge topic 'FindHDF5-C-with-only-CXX'Brad King2022-12-171-0/+4
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 14c46fb16a FindHDF5: Find C component with only CXX compiler Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8015