summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'FindCURL-version-string'Brad King2022-07-281-2/+1
|\ | | | | | | | | | | | | 0b7ae2af0d FindCURL: Fix version string in case of multiple curl installations Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7515
| * FindCURL: Fix version string in case of multiple curl installationsGeorg Lutz2022-07-271-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | On systems where there are two versions of libcurl installed CURL_VERSION_STRING is always set to the version found by the `pkg_check_modules(PC_CURL QUIET libcurl)`. But CURL_VERSION_STRING should match the libs and include paths found by `find_path` and `find_library` (more specifically the path where the header is found, because that where the version is parsed from. So make sure that the version is always parsed from the header file, use the output of pkg_check_modules only as HINT for find_path / find_library.
* | Merge topic 'find-sdl_gfx'Brad King2022-07-286-27/+100
|\ \ | |/ |/| | | | | | | | | | | 13aee97207 FindSDL_gfx: Add module to find another SDL component 1279131a8e FindSDL_*: Drop module history from public documentation Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7475
| * FindSDL_gfx: Add module to find another SDL componentXavier Del Campo Romero2022-07-271-0/+86
| | | | | | | | | | | | | | Complement the several existing `FindSDL_*` modules. Follow the pattern of the existing `FindSDL_mixer` module. Fixes: #12004
| * FindSDL_*: Drop module history from public documentationBrad King2022-07-195-27/+14
| | | | | | | | This information belongs in commit messages, not documentation.
* | FindVulkan: Move dxc component docs into definition listBrad King2022-07-251-4/+5
| |
* | Merge branch 'backport-3.24-FindVulkan-relnotes'Brad King2022-07-251-4/+23
|\ \
| * | FindVulkan: Add missing 3.24 release notesMACHIZAUD Andréa2022-07-251-0/+3
| | |
| * | FindVulkan: Format component documentation as definition listBrad King2022-07-251-4/+20
| | |
| * | Merge topic 'findwxwidgets-mingw-regression' into release-3.24Brad King2022-07-071-20/+13
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7d6e01801d FindwxWidgets: Do not reset wxWidgets_LIB_DIR unnecessarily 6dce42b171 FindwxWidgets: Restore win32 find style on MinGW Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7451
| * \ \ Merge topic 'FindLAPACK-nvhpc' into release-3.24Brad King2022-07-071-2/+7
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 28d52a43fc FindLAPACK: Add '-fortranlibs' flag only with NVHPC/PGI compilers Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7452
* | \ \ \ Merge topic 'FindVulkan-dxc'Brad King2022-07-221-0/+75
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1277b873c9 FindVulkan: Add `dxc` (DirectX Shader Compiler) component Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7474
| * | | | | FindVulkan: Add `dxc` (DirectX Shader Compiler) componentHellsingDarge2022-07-201-0/+75
| | |_|_|/ | |/| | |
* | | | | Merge topic 'FindOpenMP-no-force-flags'Brad King2022-07-221-13/+24
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 878655384e FindOpenMP: Do not overwrite user-set FLAGS, LIB_NAMES Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7487
| * | | | | FindOpenMP: Do not overwrite user-set FLAGS, LIB_NAMESBalthasar Reuter2022-07-201-13/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit 2dbff623f9 (FindOpenMP: Save flags/libs in cache entries each time they are detected, 2020-02-07, v3.17.0-rc1~10^2~1) we replace both `OpenMP_${LANG}_FLAGS` and `OpenMP_${LANG}_LIB_NAMES` with detected flags if either one is not set. That can overwrite user-provided flags. Update the logic for C, CXX, and Fortran to initialize each `OpenMP_${LANG}_{FLAGS,LIB_NAMES}` variable only if it has not already been set by the user. Fixes: #23743
* | | | | | Merge topic 'FindOpenACC_set_found_variable'Brad King2022-07-221-0/+10
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 9a6f74ffa2 FindOpenACC: Set OpenACC_FOUND when OpenACC is enabled for a language Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7437
| * | | | | | FindOpenACC: Set OpenACC_FOUND when OpenACC is enabled for a languageRobert Maynard2022-07-131-0/+10
| | |/ / / / | |/| | | |
* | | | | | Merge topic 'FindPython-remove-components-interdependence'Brad King2022-07-201-1/+9
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 71bdf78bda FindPython: remove unnecessary components interdependence Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7485
| * | | | | FindPython: remove unnecessary components interdependenceMarc Chevrier2022-07-191-1/+9
| |/ / / / | | | | | | | | | | | | | | | Fixes: #23716
* | | | | AIX: Export symbols from IBMClang IPA objectsWilliam Marlow2022-07-123-16/+38
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When interprocedural analysis is enabled on the IBMClang family of compilers (via the `-flto` option) then the resulting object files contain LLVM IR rather than XCOFF objects[1]. ExportImportList needs to detect LLVM IR objects and use the `ibm-llvm-nm` tool that ships with the compiler to create the extract the defined symbols. Without this change, such objects result in an error message from `dump` and no symbols being exported from the object file. [1]: https://www.ibm.com/docs/en/openxl-c-and-cpp-aix/17.1.0?topic=compatibility-link-time-optimization-lto
* | | | Merge topic 'better_doxy_ver_check'Marc Chevrier2022-07-101-7/+39
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | eaec9cf65d FindDoxygen: Implement more complete version checking Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Acked-by: Alex Turbov <i.zaufi@gmail.com> Merge-request: !7442
| * | | | FindDoxygen: Implement more complete version checkingChristian Heimlich2022-07-071-7/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The foundation of the Doxygen Find Module's detection methodology is the command `find_program`, which has inhibited the module from properly handling user version restrictions when provided. Because `find_program` historically has always returned after the first match and does not consider version constraints, users of this module are inadvertently at the mercy of the command's search procedure. Essentially, `find_package(Doxygen ...)` will always provide the first Doxygen build found through said procedure, even if it conflicts with the user's version requirements, and even if another build exists on the system that would satisfy those requirements (i.e. shadowing). Utilizes the new `VALIDATOR` option of `find_program` to ensure all otherwise detectable builds of Doxygen on a given system are evaluated and that only a build in compliance with `Doxygen_FIND_VERSION` et. al., when defined, will be matched against. Also enables handling of version ranges specified within `find_package` via the **FindPackageHandleStandardArgs** module. Finally, ensures that only the major, minor, and patch components of Doxygen's `--version` output are captured for comparison in cases where it contains additional information, such as a git commit hash. Fixes: #23692
* | | | | Merge topic 'findwxwidgets-mingw-regression'Brad King2022-07-071-20/+13
|\ \ \ \ \ | | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | 7d6e01801d FindwxWidgets: Do not reset wxWidgets_LIB_DIR unnecessarily 6dce42b171 FindwxWidgets: Restore win32 find style on MinGW Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7451
| * | | | FindwxWidgets: Do not reset wxWidgets_LIB_DIR unnecessarilyMaarten Bent2022-07-061-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Only reset it when `WX_ROOT_DIR` had a value. This change allows to set both `wxWidgets_LIB_DIR` and `wxWidgets_ROOT_DIR` at the same time when they where previously `-NOTFOUND`.
| * | | | FindwxWidgets: Restore win32 find style on MinGWMaarten Bent2022-07-061-18/+9
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit 6fac8af9ca (FindwxWidgets: set wxWidgets_FIND_STYLE to unix on MINGW, 2022-04-11, v3.24.0-rc1~296^2), we only tried unix find style on MinGW. However, only some MinGW builds have the `wx-config` needed for unix find style. Other builds, including those using the official wxWidgets makefiles, do not provide `wx-config` and need to use win32 find style. To accommodate both use cases, first use win32 find style and if it fails, use unix find style.
| * | | FindwxWidgets: Support more wxWidgets versions, including 3.2Maarten Bent2022-07-051-40/+18
| | | | | | | | | | | | | | | | | | | | | | | | Update the example to use a more recent wxWidgets version. Use a list with known version numbers when searching for installation directories and wx-config names.
| * | | FindwxWidgets: Use version number from header for library namesMaarten Bent2022-07-051-35/+12
| | | |
| * | | FindwxWidgets: Move extracting version number to a macroMaarten Bent2022-07-051-20/+24
| | | |
| * | | Merge topic 'nvhpc-Werror' into release-3.24Brad King2022-07-051-1/+1
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 35ec676ace NVHPC: warnings as error flag is "-Werror" Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7415
| * \ \ \ Merge topic 'add_nvcc_compile_warning_support' into release-3.24Brad King2022-07-051-0/+5
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cd324110d2 CUDA: NVCC support for COMPILE_WARNING_AS_ERROR target property 2e9ac1d272 Tests: Refactor warn on error tests to support multiple languages Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7417
* | \ \ \ \ Merge topic 'FindLAPACK-nvhpc'Brad King2022-07-071-2/+7
|\ \ \ \ \ \ | | |_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | 28d52a43fc FindLAPACK: Add '-fortranlibs' flag only with NVHPC/PGI compilers Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7452
| * | | | | FindLAPACK: Add '-fortranlibs' flag only with NVHPC/PGI compilersEisuke Kawashima2022-07-061-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit 2c9e623e31 (Find{BLAS,LAPACK}: Add support for the NVHPC LAPACK library, 2021-05-05, v3.21.0-rc1~192^2) we try the `-fortranlibs` option as a dependency of the NVHPC LAPACK. That flag is specific to the NVHPC/PGI compilers, so use it conditionally with them. Without this modification, CMake fails to find LAPACK if - compiler ID is GNU - `BLA_STATIC` is `ON` - `BLA_VENDOR` is not defined or set to `All` Fixes: #23705, #22878
* | | | | | Merge topic 'FindOpenSSL-doc-pkg-config'Brad King2022-07-061-5/+17
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 42199256af FindOpenSSL: Document use of pkg-config 475880f39b FindOpenSSL: Reformat hints documentation as definition list Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7441
| * | | | | | FindOpenSSL: Document use of pkg-configtofraa2022-07-051-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue: #17548
| * | | | | | FindOpenSSL: Reformat hints documentation as definition listBrad King2022-07-051-5/+12
| | |_|_|_|/ | |/| | | |
* | | | | | Merge topic 'lcc-additional-implicit-link-dirs'Brad King2022-07-061-0/+17
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0eea1e8563 LCC: for OpenMP, collectly determine implicit link dirs Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !7436
| * | | | | | LCC: for OpenMP, collectly determine implicit link dirsmakise-homura2022-06-301-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is found out for LCC to not specify all library search paths when called by cmake_parse_implicit_link_info(). Because of that, FindOpenMP module can't find some libraries, like libpthread. For this, we should analyze -print-search-dirs output and append library paths to implicit link ones.
* | | | | | | Merge topic 'nvhpc-Werror'Brad King2022-07-051-1/+1
|\ \ \ \ \ \ \ | | |_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 35ec676ace NVHPC: warnings as error flag is "-Werror" Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7415
| * | | | | | NVHPC: warnings as error flag is "-Werror"Robert Maynard2022-07-011-1/+1
| | |_|_|_|/ | |/| | | |
* | | | | | Merge topic 'add_nvcc_compile_warning_support'Brad King2022-07-051-0/+5
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cd324110d2 CUDA: NVCC support for COMPILE_WARNING_AS_ERROR target property 2e9ac1d272 Tests: Refactor warn on error tests to support multiple languages Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7417
| * | | | | CUDA: NVCC support for COMPILE_WARNING_AS_ERROR target propertyRobert Maynard2022-07-011-0/+5
| | | | | |
* | | | | | Merge topic 'LINK_LIBRARY-Darwin-LIBRARY-features-enhancements'Craig Scott2022-07-051-6/+6
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | / | | |_|_|/ | |/| | | | | | | | | | | | | | | | | | 537861664a Genex LINK_LIBRARY: MacOS: enhance *_LIBRARY features c55d42eb42 Darwin.cmake: Fix indenting Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7433
| * | | | Genex LINK_LIBRARY: MacOS: enhance *_LIBRARY featuresMarc Chevrier2022-07-031-3/+3
| | | | |
| * | | | Darwin.cmake: Fix indentingCraig Scott2022-07-031-3/+3
| | | | |
* | | | | Merge topic 'findicu'Brad King2022-07-011-7/+5
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 669b6a37f5 FindICU: Fix component reporting logic Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7430
| * | | | | FindICU: Fix component reporting logicAlexander Grund2022-06-301-7/+5
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | Components were incorrectly reported as found because `component_found` is set to a string containing the variable name which is a truethy value. Fix by simply merging the setter of `component_found` with the reporting setter instead of checking `component_found OR component_found_compat` which is overly verbose anyway.
* | | | | Merge topic 'FindRuby-version-matching'Brad King2022-07-011-46/+7
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | abe8192d82 FindRuby: Simplify version matching Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7425
| * | | | FindRuby: Simplify version matchingDiego Pino Garcia2022-06-301-46/+7
| | | | |
* | | | | Merge topic 'FindCURL-package-version'Brad King2022-06-301-0/+2
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 886ba0b1d6 FindCURL: Set CURL_VERSION_STRING when curl is found as a package Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !7421
| * | | | FindCURL: Set CURL_VERSION_STRING when curl is found as a packagemakise-homura2022-06-281-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | FindCURL, when found as `curl-config.cmake`, will fill `CURL_VERSION` instead of `CURL_VERSION_STRING` variable. It may break some cases when user is relying on correct value of the latter variable, and as an example, already breaks `CMakeOnly.AllFindModules` test.