summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* ExternalProject: declare byproducts for the download stepBen Boeckel2023-09-301-5/+9
| | | | | This can surface a conflict where two projects download the same file and get scheduled against each other.
* Merge topic 'FindPkgConfig-override'Brad King2023-09-201-2/+23
|\ | | | | | | | | | | | | e0d00b9218 FindPkgConfig: Allow to override variables when calling pkg_get_variable Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8808
| * FindPkgConfig: Allow to override variables when calling pkg_get_variableCorentin Noël2023-09-191-2/+23
| | | | | | | | | | This is specifically useful when building applications within containers as we sometimes need to redefine the prefix used in a variable.
* | Merge topic 'update-module-document'Brad King2023-09-193-22/+32
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | 3a54ee8cd5 FindQuickTime: Improve documentation formatting 3cf5f4af54 FindProducer: Improve documentation formatting b35c17b202 FindPhysFS: Improve documentation formatting Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8812
| * | FindQuickTime: Improve documentation formatting權少2023-09-181-6/+8
| | |
| * | FindProducer: Improve documentation formatting權少2023-09-181-10/+14
| | |
| * | FindPhysFS: Improve documentation formatting權少2023-09-181-6/+10
| | |
* | | FindMatlab:macOS: return full version when found by path guessscivision2023-09-181-0/+5
| | |
* | | FindMatlab:lint: set(... CACHE INTERNAL) implies FORCEscivision2023-09-181-6/+6
| | |
* | | FindMatlab:WIN32: return full Matlab version when found via registryscivision2023-09-181-13/+24
| | | | | | | | | | | | | | | rework internal XML reading function for better code reuse and namespace isolation
* | | FindMatlab: improve version regexscivision2023-09-181-5/+5
| | | | | | | | | | | | the matlab_versions_mapping always has at least major.minor
* | | FindMatlab: doc: rename osx=>macOSscivision2023-09-181-6/+6
| | |
* | | FindMatlab: retrieve full major.minor.patch.tweakscivision2023-09-181-4/+12
| | |
* | | FindMatlab: refactor: remove unneeded syntaxscivision2023-09-181-7/+2
| | |
* | | FindMatlab: refactor: use registry query instead of execute_processscivision2023-09-181-32/+15
|/ / | | | | | | | | | | | | | | | | On Windows, instead of executing "reg query" it's much simpler and more robust to use cmake's built in registry query. Remove unused variables. Significantly reduces amount of code in function.
* | Merge topic 'FindMatlab-r2023b'Brad King2023-09-181-7/+8
|\ \ | | | | | | | | | | | | | | | | | | cf7ea12a7e FindMatlab: Add R2023b=23.2 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8804
| * | FindMatlab: Add R2023b=23.2scivision2023-09-151-7/+8
| |/ | | | | | | Matlab went to a new version numbering scheme with R2023b.
* | Merge topic 'FindLibXslt-cache-advanced'Brad King2023-09-181-1/+2
|\ \ | | | | | | | | | | | | | | | | | | fd0d1ae002 FindLibXslt: Mark LIBXSLT_LIBRARY and LIBXSLT_EXSLT_INCLUDE_DIR as advanced Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8807
| * | FindLibXslt: Mark LIBXSLT_LIBRARY and LIBXSLT_EXSLT_INCLUDE_DIR as advancedPeter Kokot2023-09-151-1/+2
| |/ | | | | | | | | Make them consistent with other artifacts' cache entries. Also drop mark on non-cache variable.
* | FindTIFF: bridge `tiff-config` into FindTIFF-compatible interfaceBen Boeckel2023-09-141-0/+73
|/ | | | | | `libtiff` upstream now provides a configuration of its own with the `TIFF::tiff` target provided. Additionally, it uses lowercase for its package name.
* Merge topic 'mingw-search-prefixes'Brad King2023-09-141-0/+19
|\ | | | | | | | | | | | | 5e5132e1b1 MinGW: Search for packages in standard MSYSTEM environment prefixes Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8796
| * MinGW: Search for packages in standard MSYSTEM environment prefixesBrad King2023-09-131-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MSYS2 and similar MinGW/MSYS distributions define development environments with a `MSYSTEM` environment variable. Each such environment has a documented installation prefix for its packages, often provided by a `MSYSTEM_PREFIX` environment variable. Since commit 84a25fc263 (cmake_host_system_information: Add MSYSTEM_PREFIX query, 2023-09-08) we can look up this prefix. Add `$MSYSTEM_PREFIX/local` and `$MSYSTEM_PREFIX` to our system search prefixes when targeting MinGW under `MSYSTEM` environments. This is their equivalent to `/usr/local` and `/usr`, which we search by default on UNIX systems. Issue: #24216
* | Findosg*: Improve documentation formatting權少2023-09-1220-151/+276
| | | | | | | | Add reST markup for inline literals, definition lists, and notes.
* | Merge topic 'Findosg-doc'Brad King2023-09-1218-54/+54
|\ \ | | | | | | | | | | | | | | | | | | 57a0a16b58 Findosg*: Improve documentation formatting Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8792
| * | Findosg*: Improve documentation formatting權少2023-09-1118-54/+54
| |/ | | | | | | Add reST markup for inline literals and cross-references.
* | Merge topic 'FindMatlab-version'Brad King2023-09-121-24/+43
|\ \ | | | | | | | | | | | | | | | | | | 8ea398a7af FindMatlab: Prefer to use VersionInfo.xml to get version, fallback to run Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8760
| * | FindMatlab: Prefer to use VersionInfo.xml to get version, fallback to runscivision2023-09-101-24/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Parsing the version file is much faster than running Matlab. It also improves reliability as Matlab silently quits or hangs in some misconfigured environments. For old Matlab, falls back to running Matlab. also refactor file(STRINGS => file(READ as whole file was read anyway Fixes: #25209
* | | Merge topic 'FindPkgConfig_extra_whitespace'Brad King2023-09-121-2/+2
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | d47771bbb9 FindPkgConfig: ignore whitespace separators in version check Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !8789
| * | | FindPkgConfig: ignore whitespace separators in version checkPaul Zander2023-09-091-2/+2
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The regex used to split up the version if it contains an operator fails if the string contains whitespaces. Resulting in an extra whitespace after the package name and before the package version leading to breakage in pkgconf and thus webkit-gtk. See: https://github.com/pkgconf/pkgconf/issues/317 https://bugs.webkit.org/show_bug.cgi?id=261125 https://bugs.gentoo.org/913644
* | | Merge topic 'FindBoost-1.83'Brad King2023-09-121-3/+17
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 897a149067 FindBoost: Add support for Boost 1.83 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8793
| * | | FindBoost: Add support for Boost 1.83Brad King2023-09-111-3/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update the list of known versions. Run the command cmake -DBOOST_DIR=/path/to/boost_1_83_0 \ -P Utilities/Scripts/BoostScanDeps.cmake to extract dependencies from the 1.83.0 source tree. Dependencies differ from 1.82, as mentioned in the 1.83 release notes: * Boost.Timer no longer depends on Boost.Chrono Fixes: #25243
* | | | Merge topic 'FortranCInterface-macos-deployment-target'Brad King2023-09-121-0/+1
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | 84a097f038 FortranCInterface: forward `CMAKE_OSX_DEPLOYMENT_TARGET` Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !8790
| * | | FortranCInterface: forward `CMAKE_OSX_DEPLOYMENT_TARGET`Ben Boeckel2023-09-111-0/+1
| |/ / | | | | | | | | | | | | GCC needs to be taught about every macOS release it seems, so older builds may not support usage on newer releases by default.
* | | FindLua{50,51}: Fix preformatted documentation blocks權少2023-09-082-23/+5
| |/ |/| | | | | Avoid duplicate `::`.
* | Merge topic 'FindFreetype-use-config'Brad King2023-09-081-0/+58
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | d83d925045 FindFreetype: use `freetype-config.cmake` if available Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Acked-by: Ryan Krattiger <ryan.krattiger@kitware.com> Merge-request: !8775
| * | FindFreetype: use `freetype-config.cmake` if availableBen Boeckel2023-09-061-0/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The official `freetype-config.cmake` provides `Freetype::Freetype` as an `INTERFACE` library to its exported `freetype` target. This ends up causing issues if CMake's Find module is used to define `Freetype::Freetype` before using `freetype-config` because some, but not all, of its defined targets are already available triggering the generated code that detects such situations. Instead, try to use `freetype-config` where possible and provide bridge logic for this module's variable guarantees.
* | | Merge topic 'IntelLLVM-debug-flags'Brad King2023-09-081-0/+7
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | e30f0f89af IntelLLVM: Suppress -Rdebug-disables-optimization on debug builds Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: LecrisUT <github@lecris.me> Merge-request: !8764
| * | | IntelLLVM: Suppress -Rdebug-disables-optimization on debug buildsBram Metsch2023-09-071-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | IntelLLVM 2023.0.0 and above emit this remark if `-g` is used without any `-O<level>` flag, which is our default behavior. Add another flag to suppress the remark.
* | | | Merge topic 'FindPkgConfig-system-cflags'Brad King2023-09-071-1/+13
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | 252c66c697 FindPkgConfig: Tolerate PKG_CONFIG_SYSTEM_INCLUDE_PATH in environment 4507883135 Tests: Rename RunCMake.FindPkgConfig LIBRARY_PATH case to SYSTEM_PATH Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8768
| * | | FindPkgConfig: Tolerate PKG_CONFIG_SYSTEM_INCLUDE_PATH in environmentCristian Le2023-09-061-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Tell `pkg-config --cflags` not to filter out `-I` flags for entries of `PKG_CONFIG_SYSTEM_INCLUDE_PATH` (and `CPATH` for `pkgconf`). Fixes: #25228
* | | | Merge topic 'nsis-correct-jump'Brad King2023-09-061-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d3bfe0ea44 CPack/NSIS: Fix incorrect jump for standard user Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8767
| * | | | CPack/NSIS: Fix incorrect jump for standard userSprite2023-09-051-1/+1
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | Revert an incorrect change from commit c4a0bcea77 (CPack: Fix NSIS handling of privileged users, 2012-02-01, v2.8.8~230^2). Fixes: #13939
* | | | Merge topic 'FindMatlab'Brad King2023-09-061-11/+9
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7d7fe9981c FindMatlab: use if(IS_DIRECTORY) for directories instead of EXISTS cf554750dd FindMatlab: no if(NOT EXIST) guard needed for file(MAKE_DIRECTORY) Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8759
| * | | | FindMatlab: use if(IS_DIRECTORY) for directories instead of EXISTSscivision2023-08-271-8/+8
| | | | |
| * | | | FindMatlab: no if(NOT EXIST) guard needed for file(MAKE_DIRECTORY)scivision2023-08-271-3/+1
| |/ / /
* | | | Merge topic 'FindGLEW-mingw'Brad King2023-09-061-0/+4
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | a37a04b5c6 FindGLEW: Use correct library suffixes on MinGW Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8766
| * | | FindGLEW: Use correct library suffixes on MinGWمهدي شينون (Mehdi Chinoune)2023-09-031-0/+4
| |/ /
* | | macOS: Simplify imported framework locations in find modulesBrad King2023-08-253-68/+25
|/ / | | | | | | | | | | | | | | | | | | | | | | Take advantage of commit d605f728f7 (macOS: Allow IMPORTED_LOCATION to be a framework folder, 2023-06-16) to remove special-case framework logic from find modules. This changes link lines from `/path/to/Foo.framework/Foo[.tbd]` to `-framework Foo`. With the latter, the linker will automatically choose the `.tbd` if it exists. Issue: #24946
* | Merge topic 'FindZLIB-1.3'Brad King2023-08-231-18/+17
|\ \ | |/ | | | | | | | | | | | | 9034394950 FindZLIB: Fix extraction of two-component version number 1.3 Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8753
| * FindZLIB: Fix extraction of two-component version number 1.3Brad King2023-08-221-18/+17
| | | | | | | | Fixes: #25200