summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'fortran-compiler-list'Brad King2022-08-171-25/+11
|\ | | | | | | | | | | | | 35759e2497 Fortran: cleanup compiler default search list Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7548
| * Fortran: cleanup compiler default search listMichael Hirsch2022-08-161-25/+11
| | | | | | | | | | | | Made GNU gfortran be last in the list as per the docstring immmediately preceding. One high-level version-free name per vendor.
* | Merge topic 'FindVulkan-tolerate-FATAL_ERROR'Brad King2022-08-171-0/+10
|\ \ | | | | | | | | | | | | | | | | | | | | | 9063674517 Help: Add 3.24 release note about FindVulkan component enforcement bc01362368 FindVulkan: Restore tolerance of unknown FATAL_ERROR component Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7583
| * | FindVulkan: Restore tolerance of unknown FATAL_ERROR componentBrad King2022-08-171-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `find_package(Vulkan REQUIRED FATAL_ERROR)` calls exist in the wild, but `find_package` does not have a `FATAL_ERROR` option. We silently tolerated such calls prior to commit 6e4d20921d (FindVulkan: Add component for `shaderc_combined`, 2022-05-18, v3.24.0-rc1~111^2~5), by treating the argument as a component and ignoring it. Restore tolerance by removing the component and warning about it. Fixes: #23849
* | | Merge topic 'output_all_attempts_at_compiler_detection'Brad King2022-08-171-2/+6
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 9c5bd7fe3a CompilerId: Output errors from all attempts at detection Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7576
| * | | CompilerId: Output errors from all attempts at detectionRobert Maynard2022-08-161-2/+6
| | | | | | | | | | | | | | | | | | | | Instead of printing the output of the last attempt, print the output of all attempts. This shows users that CMake isn't ignoring any provided flags ( LANG_FLAGS ).
* | | | Merge topic 'nvhpc_fpie_support'Brad King2022-08-161-7/+9
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 52dc49deb9 NVHPC: Enable PIE support on linux Acked-by: Kitware Robot <kwrobot@kitware.com> Reviewed-by: Raul Tambre <raul@tambre.ee> Merge-request: !7564
| * | | | NVHPC: Enable PIE support on linuxRobert Maynard2022-08-151-7/+9
| | | | |
* | | | | Merge topic 'mingw-windres'Brad King2022-08-161-1/+1
|\ \ \ \ \ | |_|/ / / |/| | / / | | |/ / | |/| | | | | | | | | | e9755bc7c1 MinGW: Restore using windres when toolchain-prefixed name is not available Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7574
| * | | MinGW: Restore using windres when toolchain-prefixed name is not availableBrad King2022-08-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit 55ba10dcfd (MSYS/MinGW Makefiles: Simplify selection of windres as Resource Compiler, 2022-05-26, v3.24.0-rc1~82^2) the `MinGW Makefiles` and `MSYS Makefiles` generators no longer specify the plain `windres` name for the MinGW resource compiler. Instead, the name is specified in our MinGW platform information module. After the change in commit af4adf6aa9 (MinGW: Fix default windres selection when cross-compiling, 2020-03-25, v3.18.0-rc1~492^2), when cross-compiling, we only specify the toolchain-prefixed name of the tool, which may not be available in all environments. If the toolchain-prefixed name is not available, fall back to the plain `windres` name. We already use this approach for other binutils. Fixes: #23841
| * | | Merge topic 'warning-as-error-ti-compiler' into release-3.24Brad King2022-08-151-0/+1
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1cd65dfa0e TI compiler: Add support for COMPILE_WARNING_AS_ERROR target property Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Josef Angstenberger <code@jtxa.de> Merge-request: !7560
| * \ \ \ Merge topic 'mingw-flto' into release-3.24Brad King2022-08-151-1/+8
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7b2a87c2eb IPO: Do not use -flto=auto with GCC 10.x on Windows Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7559
* | \ \ \ \ Merge topic 'nvtx3'Brad King2022-08-151-0/+32
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cd200c6c2d FindCUDAToolkit: nvtx3 target Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7568
| * | | | | | FindCUDAToolkit: nvtx3 targetRaul Tambre2022-08-131-0/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | nvtx3 is a header-only replacement for the previous shared library implementations. I implemented it as a separate target since while the header names match and ideally it should be API compatible, forcing its include directory into the old target would lengthen the include search path and could cause confusion or possible build differences for projects using multiple build systems. This keeps it explicit as a developer opt-in. Implements: #21377 Resolves: #23835
* | | | | | | Merge topic 'warning-as-error-ti-compiler'Brad King2022-08-151-0/+1
|\ \ \ \ \ \ \ | | |_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1cd65dfa0e TI compiler: Add support for COMPILE_WARNING_AS_ERROR target property Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Josef Angstenberger <code@jtxa.de> Merge-request: !7560
| * | | | | | TI compiler: Add support for COMPILE_WARNING_AS_ERROR target propertyCraig Scott2022-08-111-0/+1
| | |/ / / / | |/| | | |
* | | | | | Merge topic 'mingw-flto'Brad King2022-08-151-1/+8
|\ \ \ \ \ \ | | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | 7b2a87c2eb IPO: Do not use -flto=auto with GCC 10.x on Windows Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7559
| * | | | | IPO: Do not use -flto=auto with GCC 10.x on WindowsBrad King2022-08-101-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Revise the change from commit fe57410b33 (IPO: Use -flto=auto if compiler is GCC >= 10.1, 2022-06-22, v3.24.0-rc2~2^2) to require at least GCC 11 on Windows. Fixes: #23836 Issue: #23640
* | | | | | Merge topic 'FetchContent-protobuf-example-CMP0077'Craig Scott2022-08-141-3/+4
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | b57681dc34 FetchContent: Fix protobuf example to avoid CMP0077 warning Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7565
| * | | | | FetchContent: Fix protobuf example to avoid CMP0077 warningHarald Fernengel2022-08-121-3/+4
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | The protobuf example would raise a "Policy CMP0077" warning and protobuf tests would still be built, e.g. setting the variable is ignored in latest CMake. Set an INTERNAL cache variable instead so that CMP0077 warnings won't be triggered.
* | | | | variable: Set LINUX variable on Linux target systemsCristian Adam2022-08-112-0/+2
|/ / / / | | | | | | | | Fixes: #23840
* | | | Merge topic 'FindGTK2-homebrew'Brad King2022-08-101-0/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 899390fd7b FindGTK2: Search homebrew paths for arch-specific headers Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7552
| * | | | FindGTK2: Search homebrew paths for arch-specific headersDominic Hamon2022-08-091-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Without this, CMake fails to find brew-installed GTK2 on macOS. With it, GTK2 is found.
* | | | | Merge topic 'ExternalProject-BUILD_ALWAYS-install'Brad King2022-08-101-0/+14
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 81fd0d6e26 ExternalProject: Fix install on BUILD_ALWAYS+BUILD_BYPRODUCTS with Ninja d9e88721ad ExternalProject: Add test case for BUILD_ALWAYS Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7546
| * | | | | ExternalProject: Fix install on BUILD_ALWAYS+BUILD_BYPRODUCTS with NinjaMaik Nijhuis2022-08-091-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `BUILD_BYPRODUCTS` option causes the ExternalProject's `build` step in `build.ninja` to have `restat = 1`, so its "always out-of-date" status caused by `BUILD_ALWAYS` does not propagate to the `install` step. Mark the latter step as explicitly always out-of-date too. Fixes: #23820
* | | | | | Merge topic 'FindThreads-msvc-no-pthread-flag'Brad King2022-08-091-1/+5
|\ \ \ \ \ \ | |_|/ / / / |/| | | / / | | |_|/ / | |/| | | | | | | | | | | | | | | | | | 7203963788 FindThreads: Skip check for -pthread flag when targeting the MSVC ABI Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7551
| * | | | FindThreads: Skip check for -pthread flag when targeting the MSVC ABIBrad King2022-08-081-1/+5
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit 3257c34073 (FindThreads: avoid failing in AIX when using -D_XOPEN_SOURCE=500, 2022-04-30, v3.24.0-rc1~197^2) we no longer check for `pthreads.h` before checking for the `-pthread` flag. Compilers targeting the MSVC ABI do not have such a flag, so avoid performing the check unnecessarily. Fixes: #23829
| * | | Merge topic 'fetchcontent-set-CMAKE_VERIFY_INTERFACE_HEADER_SETS' into ↵Brad King2022-08-041-0/+27
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | release-3.24 2a9cc3e8e8 FetchContent: Disable header set verification for dependencies Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7535
* | \ \ \ Merge topic 'doc-markup-program-options'Brad King2022-08-082-9/+13
|\ \ \ \ \ | |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a6abdf6c8f Help: Consistent options declaration -- short first, then long f4563f05db Help: Value for `--graphviz=` option actually is mandatory 04843d743e Help: Replace a bunch of more ``--option`` to `:option:` role 09446266ee Help: Replace mentions of ``-D`` option with :option:`-D` role b57f27b087 Help: Replace mentions of ``-T`` and ``-A`` options with role d25b232dee Help: Replace mentions of ``-G`` option with :option:`-G` role 63940e1cab Help: Replace mentions of ``-C`` option with :option:`-C` role 183a49cbfe Help: Replace mentions of ``-S`` option with :option:`-S` role ... Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7544
| * | | | Help: Replace mentions of ``-G`` option with :option:`-G` roleAlex Turbov2022-08-041-7/+8
| | | | |
| * | | | Help: Replace mentions of ``-S`` option with :option:`-S` roleAlex Turbov2022-08-041-2/+5
| | |_|/ | |/| |
* | | | Merge topic 'swift_debug'Brad King2022-08-051-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 20fe9cf7e9 Swift: Disable optimization when compiling in Debug Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7545
| * | | | Swift: Disable optimization when compiling in DebugDavid Geldreich2022-08-041-1/+1
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | By default no `-O...` flag is specified for Debug configuration for Swift so Xcode adds a (wrong) `-O` flag that prevents one from accessing variables while debugging. Add `-Onone` to the Swift Debug configuration to avoid this. Fixes: #23818
* | | | Merge topic 'enable-intel-llvm-ipo-3'Brad King2022-08-045-41/+105
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | c633bd76d8 Add linker prefix for "-stack" flag on MSVC builds 6823db0c5a Enable IPO for IntelLLVM compilers on Linux and Windows adbffd204d Propagate OpenMP compiler flags to linker for IntelLLVM 3640842df2 Tests: Update ModuleDefinition for IntelLLVM MSVC Frontend Variant 5d5a712303 IntelLLVM: Pass linker flags to the compiler when used as linker Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7533
| * | | | Enable IPO for IntelLLVM compilers on Linux and WindowsWilliam R. Dieter2022-08-013-32/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replicate and adapt Linux IPO options for Intel for IntelLLVM compilers on Linux and Windows. Signed-off-by: William R. Dieter <william.r.dieter@intel.com>
| * | | | Propagate OpenMP compiler flags to linker for IntelLLVMWilliam R. Dieter2022-08-011-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When compiling for offload and in general when OpenMP is enabled while compiling, it should also be enabled when linking. Signed-off-by: William R. Dieter <william.r.dieter@intel.com>
| * | | | IntelLLVM: Pass linker flags to the compiler when used as linkerWilliam R. Dieter2022-08-011-8/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When linking an executable, DLL, or static library, the compiler sometimes needs to see the linking options. Typically `<FLAGS>` is not passed for linking, because some of the options are only used for compilation. Previously, `<LINK_FLAGS>` was passed after the `/link` flag because the compiler did not understand some of the linking options. This change wraps the initial linker options borrowed from Windows-MSVC individually, so that they are passed directly to the linker. This change is helpful both for interprocedural optimization, which needs to pass `-Qipo` to the compiler at link time, and for SYCL which needs to pass `-fsycl` and possibly other options to the compiler at link time. Signed-off-by: William R. Dieter <william.r.dieter@intel.com>
* | | | | Merge topic 'fetchcontent-set-CMAKE_VERIFY_INTERFACE_HEADER_SETS'Brad King2022-08-041-0/+27
|\ \ \ \ \ | | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | 2a9cc3e8e8 FetchContent: Disable header set verification for dependencies Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7535
| * | | | FetchContent: Disable header set verification for dependenciesCraig Scott2022-08-031-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The CMAKE_VERIFY_INTERFACE_HEADER_SETS variable is intended to be under the control of the user. It doesn't discriminate between header sets defined in the main project and those defined by dependencies brought into the build directly via FetchContent. Developers will usually only be interested in verifying the main project's header sets, not those from dependencies. Make the variable effectively only enable header set verification of the main project by turning it off during FetchContent_MakeAvailable() calls. The user still has variables like CMAKE_PROJECT_INCLUDE and CMAKE_PROJECT_<projectName>_INCLUDE available to them if they want to enable verification of all or specific dependencies respectively. Fixes: #23808
* | | | | Merge topic 'FindLua-docfmt'Brad King2022-08-041-13/+16
|\ \ \ \ \ | |_|_|/ / |/| | | / | | |_|/ | |/| | | | | | | | | | 3e2094fb9b FindLua: Improve documentation formatting Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7539
| * | | FindLua: Improve documentation formattingMichael Hirsch2022-08-031-13/+16
| |/ / | | | | | | | | | | | | | | | | | | Since commit cb811d11ce (Help: Improve description of modules, 2019-04-12, v3.15.0-rc1~210^2) we've had two `::` prompts for the preformatted block listing the result variables. Convert the block to a definition list.
| * | Merge topic 'FindGTest-gmock-needs-gtest' into release-3.24Brad King2022-08-011-1/+1
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | 1aa95e1a3b FindGTest: Create the gmock targets only when GTest has been found Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7523
* | \ \ Merge topic 'cuda_add_lto_support'Brad King2022-08-033-16/+36
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 96bc59b1ca CUDA: Add Device LTO support for nvcc 1527d48cd0 CheckIPO: Refactor logic selecting test source files 4a552ab4ad remove unused variables 6eda92d037 remove unused variable Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7389
| * | | | CUDA: Add Device LTO support for nvccRobert Maynard2022-07-223-13/+36
| | | | | | | | | | | | | | | | | | | | Fixes #22200
| * | | | CheckIPO: Refactor logic selecting test source filesRobert Maynard2022-07-131-14/+11
| | | | |
* | | | | Merge topic 'FindCoin3D-windows'Brad King2022-08-031-2/+2
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7ab4badb4c FindCoin3D: look for coin4 on windows Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7532
| * | | | | FindCoin3D: look for coin4 on windowslorenz2022-08-021-2/+2
| | |_|_|/ | |/| | |
* | | | | Merge topic 'find-openmp-from-system-paths'Brad King2022-08-021-1/+3
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 09b4e870a5 FindOpenMP: Restore searching system paths Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Acked-by: Felix Yan <felixonmars@archlinux.org> Merge-request: !7526
| * | | | FindOpenMP: Restore searching system pathsSprite2022-08-011-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In commit 98314d536e (FindOpenMP: Use NO_DEFAULT_PATH where appropriate, 2017-11-15, v3.11.0-rc1~334^2) we added `NO_DEFAULT_PATH` so that it no longer searches in `CMAKE_PREFIX_PATH`, but this also excludes searching in system paths, which are needed on RISC-V platforms. Use more granular exclusions instead. Fixes: #23469
* | | | | Merge topic 'FindGTest-gmock-needs-gtest'Brad King2022-08-011-1/+1
|\ \ \ \ \ | | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | 1aa95e1a3b FindGTest: Create the gmock targets only when GTest has been found Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7523