summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* FindMatlab: Fix spelling in warning and documentationJosef Angstenberger2021-05-071-8/+8
|
* Modules: Fix typos and spelling in documentationJosef Angstenberger2021-05-074-6/+6
|
* Modules: Fix typos and spelling in comments of generated codeJosef Angstenberger2021-05-072-2/+2
|
* Modules: Fix typos and spelling in commentsJosef Angstenberger2021-05-077-7/+7
|
* Merge topic 'FindProtobuf-grpc-plugin'Brad King2021-05-071-2/+6
|\ | | | | | | | | | | | | f2a4b879b1 FindProtobuf: Add PLUGIN parameter to protobuf_generate Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6068
| * FindProtobuf: Add PLUGIN parameter to protobuf_generateFrank Lange2021-05-061-2/+6
| | | | | | | | | | This allows for example reusing the function for generating gRPC code by specifying which grpc plugin to use.
* | Merge topic 'Fujitsu-Fortran-Ninja'Brad King2021-05-071-1/+1
|\ \ | | | | | | | | | | | | | | | | | | 284d12a426 Fujitsu: Make explicit Fortran preprocessing under Ninja more robust Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6080
| * | Fujitsu: Make explicit Fortran preprocessing under Ninja more robustEisuke Kawashima2021-05-061-1/+1
| |/ | | | | | | | | | | | | | | | | Tell the Fortran compiler to write preprocessor output directly to a file, as we do for the GNU compiler. The previous "redirect stdout" approach could break checks using flags that add information to stdout when called with `-###`. Fixes: #22156
* | Merge topic 'improve_cuda_toolkit_extraction_regex'Brad King2021-05-073-3/+3
|\ \ | |/ |/| | | | | | | | | | | 5e931c5a97 CUDA: improve regex for CUDA Toolkit root from nvcc verbose output Acked-by: Kitware Robot <kwrobot@kitware.com> Reviewed-by: Raul Tambre <raul@tambre.ee> Merge-request: !6094
| * CUDA: improve regex for CUDA Toolkit root from nvcc verbose outputRobert Maynard2021-05-063-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | The original regular expression was greedy and would match any environment variable ending with `TOP` (like `DESKTOP`). This is an issue on windows where `nvcc -v` would output all environment variables before the compiler's verbose output. To resolve this issue we use a tighter match algorithm that looks for `#$ TOP=` instead of `TOP=`. Fixes: #22158
* | Merge topic 'doc-tls'Brad King2021-05-051-1/+1
|\ \ | | | | | | | | | | | | | | | | | | 7398993f5b Help: Document CMAKE_TLS_VERIFY variable explicitly Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6064
| * | Help: Document CMAKE_TLS_VERIFY variable explicitlyMichael Hirsch2021-05-041-1/+1
| | | | | | | | | | | | | | | Previously it was mentioned only in the `file` and `ExternalProject` documentation.
* | | Merge topic 'clang-ipo-support'Brad King2021-05-051-2/+2
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 3dd776ccfd Windows-Clang: Support duplicate object names in LTO archives Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6082
| * | | Windows-Clang: Support duplicate object names in LTO archivesBrad King2021-05-031-2/+2
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | Update the archive rules added by commit 6e3655db2c (Clang: add LTO support for GNU-command line clang on windows, 2019-07-08, v3.16.0-rc1~161^2~3) to match the `ar` convention we use for normal archives. Issue: #21988
* | | Merge topic 'binutils-var-private'Brad King2021-05-051-10/+12
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | c33fb2e664 BinUtils: Use more-private temporary variable names Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6085
| * | | BinUtils: Use more-private temporary variable namesBrad King2021-05-041-10/+12
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | Since commit 4d786dfcfa (BinUtils: Avoid clobbering a variable named without a private prefix, 2021-04-06, v3.20.1~4^2) we use variables named `_tool` and `_name`, but these may still be common enough to affect project code. Use `_CMAKE_TOOL` and `_CMAKE_TOOL_NAME` instead, and unset them when finished. Fixes: #22140
* | | Merge topic 'mingw-archive-no-replace'Brad King2021-05-041-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | e8f0b75ff9 Windows-GNU: Support duplicate object names when linking shared libraries Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6081
| * | | Windows-GNU: Support duplicate object names when linking shared librariesBrad King2021-05-031-1/+1
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | Extend the change from commit 39d0ade07e (Windows-GNU: Support duplicate object names in large archives (#14874), 2014-04-14, v3.1.0-rc1~629^2~1) to apply to the temporary archive we create for linking shared libraries with MinGW tools. Issue: #21988
* | | Merge topic 'findswig-clean'Brad King2021-05-041-39/+55
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 229dd42158 Change find_path scope and add quotes ff6f7b232f FindSWIG: reduce calls to SWIG exe, and clean up variables Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6075
| * | | Change find_path scope and add quotesSeth R Johnson2021-05-031-8/+8
| | | |
| * | | FindSWIG: reduce calls to SWIG exe, and clean up variablesSeth R Johnson2021-05-021-38/+54
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If all SWIG cache variables (EXECUTABLE, DIR, VERSION) are set, there should be no need to invoke the SWIG exe on a reconfigure. This changeset reduces the number of calls to the SWIG executable, and additonially prevents temporary `SWIG_xxx` values from propagating outside the `find_package` call. I also refactored the conditionals to be less nested (and thus more predictable), including changing theh definition of SWIG_USE_FILE to reflect that it's if and only if SWIG_FOUND is trure.
* | | Merge topic 'useswig-includes'Brad King2021-05-041-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | d2296cdaab UseSWIG: remove duplicate target includes Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6074
| * | | UseSWIG: remove duplicate target includesSeth R Johnson2021-05-021-1/+1
| |/ /
* | | Merge topic 'FindBLAS-mkl-omp'Brad King2021-05-041-7/+16
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 20ab504591 FindBLAS: Do not statically link against iomp5 in the case of Intel MKL Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6001
| * | | FindBLAS: Do not statically link against iomp5 in the case of Intel MKLEisuke Kawashima2021-04-291-7/+16
| |/ / | | | | | | | | | fix #21811
* | | Merge topic 'compile-features-lang-vars'Brad King2021-05-042-4/+4
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | bd16a985fc CompilerId/Features: Tolerate variables named for languages Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Timothy Brackett <brackett.tc@gmail.com> Merge-request: !6060
| * | CompilerId/Features: Tolerate variables named for languagesBrad King2021-05-032-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a `CMakeLists.txt` or `CMAKE_TOOLCHAIN_FILE` sets a variable named `C`, `CXX`, or `CUDA`, we were previously comparing each enabled language name to the value of that variable, rather than the name itself. Double-quote the string to take advantage of policy `CMP0054`, but also add "x" prefixes to support projects that do not set the policy. Fixes: #22125
* | | Merge topic 'find-msys'Brad King2021-04-296-0/+47
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 990b370401 FindMsys: Add a module to find MSYS and some bundled packages Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6057
| * | | FindMsys: Add a module to find MSYS and some bundled packagesOrgad Shaneh2021-04-286-0/+47
| | | |
* | | | Merge topic 'intel-2021'Brad King2021-04-292-12/+38
|\ \ \ \ | |_|/ / |/| | / | | |/ | |/| | | | | | | | | | 9c479c7c40 IntelLLVM: Add special case for ifx 2021.1 version extraction b7193ab18f Intel: Update Classic compiler version detection for 2021 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6052
| * | IntelLLVM: Add special case for ifx 2021.1 version extractionBrad King2021-04-281-0/+8
| | | | | | | | | | | | | | | | | | | | | The ifx beta versions forgot to define `__INTEL_LLVM_COMPILER`, and instead define `__INTEL_COMPILER == 201900`. Add a special case. Issue: #22120
| * | Intel: Update Classic compiler version detection for 2021Brad King2021-04-282-12/+30
| | | | | | | | | | | | | | | | | | | | | The value of the `__INTEL_COMPILER` macro changed convention starting in version 2021. Fixes: #22120
* | | Merge topic 'cpack-nsis-uninstall-name'Brad King2021-04-281-2/+2
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 79f48da5c2 CPack/NSIS: Fix CPACK_NSIS_UNINSTALL_NAME when not Uninstall.exe Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6050
| * | | CPack/NSIS: Fix CPACK_NSIS_UNINSTALL_NAME when not Uninstall.exeMarkus Israelsson2021-04-271-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a previous installation was detected by the NSIS script the uninstaller was not correctly run unless it was still named `Uninstall.exe`. This meant that using `CPACK_NSIS_UNINSTALL_NAME` was simply broken. Fixes: #22103
* | | | Merge topic 'ARMClang-cpu-arch-flags'Brad King2021-04-281-26/+46
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | c4941b7e66 ARMClang: Do not automatically add cpu/arch compile or link options 0078db3888 ARMClang: Separate cpu/arch flags from preceding flags Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Jaeden Amero <kitware@patater.com> Merge-request: !6035
| * | | ARMClang: Do not automatically add cpu/arch compile or link optionsLingkai Dong2021-04-271-26/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The compile options `--march=<arch>` and `--mcpu=<cpu>` and the link option `--cpu=<cpu>` are automatically added by CMake based on `CMAKE_SYSTEM_PROCESSOR` or `CMAKE_SYSTEM_ARCH`. But this is not sufficient, because armclang also supports enabling or disabling features using `+<feature>`: -mcpu=<name>[+[no]<feature>+...] For example: -mcpu=cortex-a57+nocrypto+nofp+nosimd+crc (Reference: https://developer.arm.com/documentation/dui0774/k/Compiler-Command-line-Options/-mcpu?lang=en) The problem is, even if a project adds a flag with features it needs, CMake still adds flags, resulting in code that is compiled with wrong CPU features and unable to run. Add policy `CMP0123` to not automatically add compile or link options, and let projects set them instead. Co-Author: Brad King <brad.king@kitware.com> Fixes: #21173
| * | | ARMClang: Separate cpu/arch flags from preceding flagsBrad King2021-04-271-3/+3
| | | | | | | | | | | | | | | | Suggested-by: Kim Kryger
* | | | Merge topic 'FindIconv-no-libc'Brad King2021-04-272-24/+30
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 404025b00c FindIconv: Avoid explicitly finding C runtime library 8b30e7adfb FindIntl: Use explicit find_library signature NAMES keyword Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Sibi Siddharthan <sibisiddharthan.github@gmail.com> Merge-request: !6046
| * | | | FindIconv: Avoid explicitly finding C runtime libraryBrad King2021-04-261-23/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If `iconv` functionality is built into the C runtime library, we do not need to link any libraries. Do not find `libc`. Fixes: #22114
| * | | | FindIntl: Use explicit find_library signature NAMES keywordBrad King2021-04-261-1/+3
| | | | |
* | | | | MSYS: Add support for running under MSYS runtime environmentOrgad Shaneh2021-04-2614-4/+21
| | | | | | | | | | | | | | | | | | | | Detect MSYS as CYGWIN, with the required adaptations.
* | | | | FindCurses: Do not assume ncurses is installed on CYGWINBrad King2021-04-261-1/+1
|/ / / /
* | | | Merge topic 'SWIG'Brad King2021-04-261-7/+16
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e3e005dbd8 UseSWIG: use swig dependencies for Xcode generator Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6042
| * | | | UseSWIG: use swig dependencies for Xcode generatorMarc Chevrier2021-04-231-7/+16
| | | | |
* | | | | Merge topic 'lzma-threads'Brad King2021-04-261-8/+17
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | c5c130e675 cmArchiveWrite: Consolidate multiple ways to set thread count 5380d858ff liblzma: Enable multi threaded stream encoding support e9065e96dc Merge branch 'upstream-liblzma' into lzma-threads ee909a8e8b liblzma 2020-03-17 (2327a461) 741b85b42b liblzma: Revise update script to get version 5.2.5 Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Ben Boeckel <ben.boeckel@kitware.com> Merge-request: !6014
| * | | | | cmArchiveWrite: Consolidate multiple ways to set thread countNils Gladitz2021-04-221-5/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge use of SetFilterOption() into more abstract thread count in cmArchiveWrite constructor. libarchive defaulting of threads for threads == 0 seems to be configuration dependent. Preemptively default thread count via std::thread::hardware_concurrency(). Also allow negative values for the thread count in which case the detected hardware concurrency is also used but the given absolute thread count is used as an upper limit.
| * | | | | liblzma: Enable multi threaded stream encoding supportNils Gladitz2021-04-221-3/+4
| |/ / / /
* | | | | Merge topic 'doc-compile-features-wcdh'Brad King2021-04-261-0/+125
|\ \ \ \ \ | |_|_|/ / |/| | | / | | |_|/ | |/| | | | | | | | | | | | | | 1f4ec3f4a7 Help: Do not recommend WCDH in cmake-compile-features(7) 1cc63f2cd5 Help: Fix typos in cmake-compile-features(7) Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6037
| * | | Help: Do not recommend WCDH in cmake-compile-features(7)Brad King2021-04-231-0/+125
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit da7ad7997e (WriteCompilerDetectionHeader: Add policy to remove module, 2020-12-04, v3.20.0-rc1~350^2), the WCDH module is deprecated. Update the `cmake-compile-features(7)` manual section that previously recommended WCDH to make such detection the project's responsibility instead. Move the old content of the section over to the WCDH module to preserve it.
* | | | Merge topic 'cuda-host-compiler-windows'Brad King2021-04-233-22/+14
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 625ef88a92 CUDA: Add CMAKE_CUDA_HOST_COMPILER support on Windows non-VS generators Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6030