summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* ASM: Record vendor-specific output matched to identify assemblerBrad King2020-03-123-0/+9
| | | | | | For example, with GNU `as`, we match `GNU assembler`, but with GNU `gcc` as the assembler, we do not match anything. Distinguishing these cases may be useful for constructing assembler command lines.
* CMakeDetermineCompilerId: Set locale to C for vendor output matchBrad King2020-03-121-0/+13
| | | | | | Apply the change from commit d751d2d2ed (CMakeDetermineCompilerABI: set locale to C for try_compile(), 2019-01-14, v3.14.0-rc1~108^2~1) to the `CMAKE_DETERMINE_COMPILER_ID_VENDOR` implementation too.
* Merge topic 'FindCUDAToolkit-reduce-verbosity'Brad King2020-03-111-1/+8
|\ | | | | | | | | | | | | a7cf574417 CUDAToolkit: Mark find queries as advanced variables Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4455
| * CUDAToolkit: Mark find queries as advanced variablesRobert Maynard2020-03-101-1/+8
| | | | | | | | Fixes #20435
* | Merge topic 'cuda_toolkit_dirs'Brad King2020-03-101-25/+28
|\ \ | | | | | | | | | | | | | | | | | | 0703e5fb6f CUDA: Perform CUDA toolkit include directory detection only on nvcc Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4443
| * | CUDA: Perform CUDA toolkit include directory detection only on nvccRaul Tambre2020-03-081-25/+28
| | | | | | | | | | | | The code is specific to nvcc.
* | | Merge topic 'swift-ninja-multiconfig'Kyle Edwards2020-03-101-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 87819db28d Merge branch 'backport-swift-ninja-multiconfig' into swift-ninja-multiconfig 65b3848de0 Swift: support Ninja Multi-Config Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4440
| * \ \ Merge branch 'backport-swift-ninja-multiconfig' into swift-ninja-multiconfigKyle Edwards2020-03-091-1/+1
| |\ \ \ | | |/ / | |/| |
| | * | Swift: support Ninja Multi-ConfigSaleem Abdulrasool2020-03-091-1/+1
| | | | | | | | | | | | | | | | | | | | Enable support for multi-configuration builds using Ninja when building Swift.
| | * | Merge topic 'FindPython-manage-SOABI-suffix' into release-3.17Brad King2020-03-044-13/+39
| | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0c97b73bc0 FindPython: python_add_library can now manage SOABI suffix. Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4420
* | | \ \ Merge topic 'TI-C'Brad King2020-03-101-2/+6
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5a0fc68312 TI: Fix C toolchain command-lines Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4422
| * | | | | TI: Fix C toolchain command-linesOliver Blasius2020-03-091-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix `armar` arguments. Fix the linker `--map_file=` argument. Enable response files.
* | | | | | Merge topic 'FindArmadillo-wrappers'Brad King2020-03-091-21/+62
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 38c6dd7b19 FindArmadillo: Add support for non-wrapper case Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4418
| * | | | | FindArmadillo: Add support for non-wrapper caseRyan Birmingham2020-03-061-21/+62
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Armadillo is typically built as a wrapper library, which is what this find module has historically supported, but it does not have to be. If not, then instead of armadillo itself, we need to link to some combination of dependencies and not armadillo.
* | | | | Merge topic 'FindPython-artifacts-scope'Brad King2020-03-064-13/+76
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e5b4c74238 FindPython: Add possibility to control scope of artifacts. Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4426
| * | | | | FindPython: Add possibility to control scope of artifacts.Marc Chevrier2020-03-054-13/+76
| | | | | | | | | | | | | | | | | | | | | | | | Fixes: #20362
* | | | | | Merge topic 'findx11-improvement'Brad King2020-03-051-0/+94
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 77802aab97 FindX11: Find additional libraries Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Ben Boeckel <ben.boeckel@kitware.com> Merge-request: !4101
| * | | | | FindX11: Find additional librariesZsolt Parragi2020-03-041-0/+94
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With this change, FindLibrary(X11) learns about the following libraries: * xcb * X11-xcb * xcb-icccm * xcb-xkb * xkbcommon * xkbcommon-X11
* | | | | Merge topic 'FindOpenAL-updates'Brad King2020-03-041-48/+51
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a67f0a4ac7 FindOpenAL: Move user-relevant comments into public documentation cf0ce977de FindOpenAL: Minor implementation cleanup Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4414
| * | | | | FindOpenAL: Move user-relevant comments into public documentationNguyễn Gia Phong2020-03-031-35/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In particular, the role of frameworks in the search order can help users trying to use the ``OPENALDIR`` environment variable. Fixes: #20334
| * | | | | FindOpenAL: Minor implementation cleanupNguyễn Gia Phong2020-03-031-13/+17
| | | | | | | | | | | | | | | | | | | | | | | | Use modern FPHSA signature. Indent search paths.
* | | | | | Merge topic 'msvc-librarian'Brad King2020-03-045-3/+5
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 55196a1440 MSVC: Use 'lib' instead of 'link /lib' to create static libraries Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4409
| * | | | | | MSVC: Use 'lib' instead of 'link /lib' to create static librariesFrancisco Facioni2020-03-035-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `link.exe /lib` is an undocumented flag and it just calls `lib.exe`. Also `link.exe` doesn't parse the `/lib` option correctly when in a response file.
* | | | | | | Merge topic 'FindPython-manage-SOABI-suffix'Brad King2020-03-044-13/+39
|\ \ \ \ \ \ \ | | |_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0c97b73bc0 FindPython: python_add_library can now manage SOABI suffix. Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4420
| * | | | | | FindPython: python_add_library can now manage SOABI suffix.Marc Chevrier2020-03-034-13/+39
| | |_|_|_|/ | |/| | | | | | | | | | | | | | | | Fixes: #20408
* | | | | | Merge topic 'llvm-rc-defines-not-flags'Brad King2020-03-041-1/+1
|\ \ \ \ \ \ | |_|_|_|/ / |/| | | | / | | |_|_|/ | |/| | | | | | | | | | | | | ee70c5de4d llvm-rc: Forward DEFINES instead of FLAGS Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4419
| * | | | llvm-rc: Forward DEFINES instead of FLAGSThomas Bernard2020-03-031-1/+1
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit 1c2d031cbd (Add -E cmake_llvm_rc to preprocess files for llvm-rc, 2020-01-14, v3.17.0-rc1~24^2) we pass the full target `<FLAGS>` to the llvm-rc resource compiler, but we should pass only `<DEFINES>`. Fixes: #20414
| * | | Merge topic 'q_namespace_export' into release-3.17Brad King2020-02-281-1/+1
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 426941c433 Autogen: Recognize the new Q_NAMESPACE_EXPORT macro in AUTOMOC Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4398
| * \ \ \ Merge topic 'FindPython-cache-cleanup' into release-3.17Brad King2020-02-271-55/+102
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 42c6a1bfee FindPython: Do not cache computed result variables a7b4516e1a FindPython: Mark non-public cache entries INTERNAL Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4393
| * \ \ \ \ Merge topic 'FindCUDA-no-threads-target' into release-3.17Brad King2020-02-251-1/+5
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b9d67447c3 FindCUDA: Only depend on Threads::Threads on platforms that need it Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4377
| * \ \ \ \ \ Merge topic 'FindPkgConfig-scope' into release-3.17Brad King2020-02-251-0/+6
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | c3e0d1ffe9 FindPkgConfig: set policies CMP0054 and CMP0057 to new Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4388
| * \ \ \ \ \ \ Merge topic 'cuda-non-device-link' into release-3.17Brad King2020-02-251-1/+1
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7da2c8c543 Merge branch 'backport-cuda-non-device-link' 738f3f23aa Ninja: Do not use nvcc response files with non-nvcc tools Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Robert Maynard <robert.maynard@kitware.com> Merge-request: !4376
* | \ \ \ \ \ \ \ Merge topic 'CheckTypeSize-ppc64'Brad King2020-03-021-2/+6
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a09d646b7c CheckTypeSize: Fix '..._CODE' result for ppc and ppc64 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4413
| * | | | | | | | | CheckTypeSize: Fix '..._CODE' result for ppc and ppc64Brad King2020-02-281-2/+6
| | |_|_|_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Check for ppc64 macros before plain ppc. Consider both upper and lower case variants because some compilers have only one of them. Fixes: #20368
* | | | | | | | | Merge topic 'xl-fortran-module-dir-use'Brad King2020-03-021-0/+1
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 92785ed746 Tests: Enable Fortran submodule tests on XL compilers 210b0b99a9 XL: Fix using Fortran modules from their output directory Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4405
| * | | | | | | | | XL: Fix using Fortran modules from their output directoryBrad King2020-02-281-0/+1
| | |_|_|_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The XL Fortran compiler's `-qmoddir=` flag sets the module output directory but does not add the directory to the search path for using modules. This is inconsistent with other compilers like the GNU Fortran compiler's `-J` flag that does both. In order to make these consistent, add the module output directory with a `-I` flag on the XL Fortran compiler so that it will be searched when using modules too. This fixes our `FortranModules` test's coverage of submodules on Ninja + XL. That test places module files in a subdirectory that with Ninja is not the current working directory when the compiler runs. Fixes: #20400
* | | | | | | | | Merge topic 'CheckFortranSource-def'Brad King2020-03-022-8/+4
|\ \ \ \ \ \ \ \ \ | |_|/ / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1bc521416f CheckFortranSource*: Avoid passing -DVAR to linker Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4406
| * | | | | | | | CheckFortranSource*: Avoid passing -DVAR to linkerBrad King2020-02-282-8/+4
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The test project is compiled with a `-DVAR` compiler flag where `VAR` is the result variable. Tell `try_compile` to add the flag through `add_definitions` instead of `CMAKE_Fortran_FLAGS` so that it is not used for linking. Otherwise some Fortran compilers (e.g. XL 15) do not like the flag when used to drive linking.
* | | | | | | | Merge topic 'FortranCInterface-cross-compile'Brad King2020-02-282-8/+6
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8e2683cf6d FortranCInterface: Fix broken search for test exe when cross-compiling Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4404
| * | | | | | | | FortranCInterface: Fix broken search for test exe when cross-compilingBrad King2020-02-272-8/+6
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously the `find_program` call we used to locate the test executable but that can be broken by `CMAKE_FIND_ROOT_PATH_MODE_PROGRAM`. Instead teach the test project to write a file with the location of the executable it builds. Load that file to get the exact location. Fixes: #20390
* | | | | | | | Merge topic 'q_namespace_export'Brad King2020-02-281-1/+1
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | / | | |_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | 426941c433 Autogen: Recognize the new Q_NAMESPACE_EXPORT macro in AUTOMOC Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4398
| * | | | | | Autogen: Recognize the new Q_NAMESPACE_EXPORT macro in AUTOMOCRichard2020-02-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Qt 5.14 introduced a new moc keyword `Q_NAMESPACE_EXPORT`. Qt-Issue: https://bugreports.qt.io/browse/QTBUG-68014
* | | | | | | Merge topic 'FindPython-cache-cleanup'Brad King2020-02-271-55/+102
|\ \ \ \ \ \ \ | | |_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 42c6a1bfee FindPython: Do not cache computed result variables a7b4516e1a FindPython: Mark non-public cache entries INTERNAL Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4393
| * | | | | | FindPython: Do not cache computed result variablesMarc Chevrier2020-02-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit 06d9e67fbd (FindPython: Add capability to specify directly artifacts, 2019-08-15, v3.16.0-rc1~157^2) we accidentally add the result variables `Python*_LIBRARY_RELEASE` and `Python*_LIBRARY_DEBUG` to the cache. They are always computed from other results and so should not be presented to users in cmake-gui and ccmake to edit. Issue: #20362
| * | | | | | FindPython: Mark non-public cache entries INTERNALMarc Chevrier2020-02-261-52/+99
| | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit 06d9e67fbd (FindPython: Add capability to specify directly artifacts, 2019-08-15, v3.16.0-rc1~157^2) we accidentally expose cache entries named `_Python...` to users in cmake-gui and ccmake. Mark those entries as `INTERNAL` to hide them. Issue: #20362
| * | | | | Merge topic 'pch-create-via-include' into release-3.17Brad King2020-02-243-3/+3
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5c6d6ec27c PCH: Clang: Update PCH usage flags to include original header Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4360
| * \ \ \ \ \ Merge topic 'swift-exe-rpath' into release-3.17Brad King2020-02-181-0/+5
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 321df5783d Swift: support `-rpath` for executables Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4365
| * \ \ \ \ \ \ Merge topic 'git-config-with-spaces' into release-3.17Brad King2020-02-171-1/+1
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ef3194a6f8 ExternalProject: Quote each git --config option to handle spaces 40d1d29cfa Tests: Add missing ExternalProject smoke tests afc8956765 Tests: Fix test_clean target missing some test directories Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4364
* | \ \ \ \ \ \ \ Merge topic 'FindSWIG-components'Marc Chevrier2020-02-271-14/+57
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e131d9f974 FindSWIG: Add COMPONENTS support for SWIG target languages Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4384
| * | | | | | | | | FindSWIG: Add COMPONENTS support for SWIG target languagesSeth R Johnson2020-02-261-14/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Newer versions of SWIG drop support for some target languages, and some forks of SWIG (such as for Fortran and MATLAB) aren't supported by the mainline version of SWIG. Swig versions as old as 1.3.6 (circa 2001) and possibly older use the same format for listing available wrappers "%-15s - Generate %s wrappers", so component detection should be quite reliable.