summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* CUDA: Add Support to SourceCompiles|Runs and CheckCompilerFlagsRobert Maynard2020-10-083-0/+10
|
* Merge topic 'add_ispc_to_check_helpers'Brad King2020-10-072-0/+5
|\ | | | | | | | | | | | | e17e2c6a51 ISPC: CheckCompilerFlags and CheckSourceCompiles support ISPC Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5337
| * ISPC: CheckCompilerFlags and CheckSourceCompiles support ISPCRobert Maynard2020-10-062-0/+5
| |
* | CheckCompilerFlag: Update the regex used to detect invalid options for GCC 10Luthaf2020-10-061-5/+5
|/ | | | | | | | | The warning emmitted by GCC for invalid options have been updated to read "command-line option XXX is valid ..." instead of "command line option XXX is valid ...". Update the regex to make it valid with both the old and new warning message. Fixes: #21275
* Merge topic 'boost-1.74.0'Brad King2020-10-061-1/+2
|\ | | | | | | | | | | | | | | 0d86bb0902 FindBoost: Add 1.74 to known versions 1940e24d58 FindBoost: Prevent warning with boost 1.74 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5319
| * FindBoost: Add 1.74 to known versionsOlivier LIESS2020-10-041-0/+1
| |
| * FindBoost: Prevent warning with boost 1.74Olivier LIESS2020-10-041-1/+1
| |
* | Merge topic 'cuda_nvcc_abi_werror'Brad King2020-10-051-1/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | 079ea66468 CMakeDetermineCompilerABI: Handle NVCC-style -Werror flags Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Seth R Johnson <johnsonsr@ornl.gov> Merge-request: !5318
| * | CMakeDetermineCompilerABI: Handle NVCC-style -Werror flagsRaul Tambre2020-10-041-1/+1
| | | | | | | | | | | | | | | | | | NVCC doesn't require an equals sign for its -Werror flags. Fixes #21265.
* | | Merge topic 'FetchContent_missing_SOURCE_DIR'Craig Scott2020-10-041-0/+6
|\ \ \ | |/ / |/| | | | | | | | | | | | | | b030a6af88 FetchContent: Raise error if manually given source dir does not exist Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5317
| * | FetchContent: Raise error if manually given source dir does not existCraig Scott2020-10-031-0/+6
| | | | | | | | | Fixes: #21208
* | | FindSWIG: Fix syntax errorMarc Chevrier2020-10-021-1/+6
| |/ |/| | | | | | | | | Add some tests to cover all cases regarding version handling Fixes: #21264
* | Merge topic 'UseSWIG-output-source-file-properties'Brad King2020-10-021-9/+42
|\ \ | |/ |/| | | | | | | | | 4a81a0ce3d UseSWIG: Add OUTPUT_DIR and OUTFILE_DIR source file properties Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5303
| * UseSWIG: Add OUTPUT_DIR and OUTFILE_DIR source file propertiesMarc Chevrier2020-09-301-9/+42
| | | | | | | | | | | | | | These properties enable to manage output directories on per source file basis. Fixes: #21250
* | Merge topic 'FindSWIG-version-range'Craig Scott2020-10-021-6/+35
|\ \ | | | | | | | | | | | | | | | | | | 1d300ee2a9 FindSWIG: Add version range support Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5306
| * | FindSWIG: Add version range supportMarc Chevrier2020-10-011-6/+35
| |/
* | Merge topic 'macos-arm64'Brad King2020-10-012-4/+26
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | b6c60f14b6 macOS: Default to arm64 architecture on Apple Silicon hosts 383e81aa60 Tests: Teach RunCMake to ignore Xcode internal objc warnings 8f75912176 Tests: Enable Assembler test case when CMAKE_OSX_ARCHITECTURES has one value Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5291
| * | macOS: Default to arm64 architecture on Apple Silicon hostsBrad King2020-09-302-4/+26
| | | | | | | | | | | | | | | | | | | | | | | | Detect `arm64` hardware using a method that pierces Rosetta. If `CMAKE_OSX_ARCHITECTURES` is not set, pass explicit flags to the toolchain to use `arm64` instead of letting the toolchain pick. Fixes: #20989
* | | Merge topic 'intel-clang'Brad King2020-10-012-0/+8
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 5c3a93ab88 Intel: Add Intel Clang compiler identification Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5300
| * | | Intel: Add Intel Clang compiler identificationHarini Chilamantula2020-09-292-0/+8
| | | | | | | | | | | | | | | | | | | | The compiler identifies itself with the `__INTEL_CLANG_COMPILER` preprocessor definition.
* | | | FindPython: Add version range supportMarc Chevrier2020-09-304-142/+327
| |_|/ |/| | | | | | | | Fixes: #21107
* | | Merge topic 'find-package-check-empty-version-range'Craig Scott2020-09-301-7/+3
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 212b0afb66 find_package: raise error on empty version range Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5294
| * | | find_package: raise error on empty version rangeMarc Chevrier2020-09-291-7/+3
| |/ /
* | | Merge topic 'cxx-as-objcxx'Brad King2020-09-302-2/+2
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 8a2977ba55 OBJCXX: Fix regression for compiling cpp files as objcxx Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5296
| * | | OBJCXX: Fix regression for compiling cpp files as objcxxCristian Adam2020-09-292-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In commit 8d61294c3e (PCH: Mark CMake PCH source files as -x <lang>-header, 2020-09-04, v3.18.3~14^2) we removed the explicit `-x objective-c++` flag. This broke cases with custom source extensions. Restore the explicit `-x objective-c[++]` flag and put it before the `<FLAGS>` placeholder. The latter will contain the proper `-x objective-c[++]-header` value and will override the `-x objective-c[++]` value set before. Fixes: #21234
| * | | Merge topic 'FindJNI-aarch64' into release-3.18Brad King2020-09-281-1/+1
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 696d16ae6c FindJNI: Add aarch64 support Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Vitaly Lipatov <lav@etersoft.ru> Merge-request: !5275
| * \ \ \ Merge topic 'clang-llvm-lib' into release-3.18Brad King2020-09-251-1/+2
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f5d3da091b Clang: Look for llvm-lib when using MSVC-like front-end Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Thomas Bernard <thomas@famillebernardgouriou.fr> Merge-request: !5264
* | \ \ \ \ Merge topic 'cuda-11.1-sm86'Brad King2020-09-301-3/+13
|\ \ \ \ \ \ | |_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5f6b0ba8b1 FindCUDA/select_compute_arch: Add CUDA 11.1 and SM86 support Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5292
| * | | | | FindCUDA/select_compute_arch: Add CUDA 11.1 and SM86 supportzasdfg bnm2020-09-291-3/+13
| | | | | |
* | | | | | Merge topic 'add_lang_agnostic_check_compile_flag_module'Brad King2020-09-296-117/+122
|\ \ \ \ \ \ | |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 90dead024c CheckCompilerFlag: unified way to check compiler flags per language Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5281
| * | | | | CheckCompilerFlag: unified way to check compiler flags per languageRobert Maynard2020-09-286-117/+122
| | | | | |
* | | | | | Merge topic 'vs-generator-platform-install-prefix'Brad King2020-09-281-0/+4
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 561d4b4a47 VS: Fix CMAKE_INSTALL_PREFIX with GENERATOR_PLATFORM for x64 and ARM Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5272
| * | | | | | VS: Fix CMAKE_INSTALL_PREFIX with GENERATOR_PLATFORM for x64 and ARMRechi2020-09-251-0/+4
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Generate the same default `CMAKE_INSTALL_PREFIX` if a project is configured with CMAKE_GENERATOR_PLATFORM (`cmake -G "Visual Studio [...]" -A x64` and `cmake -G "Visual Studio [...]" -A ARM`) instead of the prior CMake 3.1 way (`cmake -G "Visual Studio [...] Win64"` and `cmake -G "Visual Studio [...] ARM"`).
* | | | | | Merge topic 'pkg_config_detailed_error'Brad King2020-09-281-2/+10
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ab8bd48352 FindPkgConfig: Search for pkg-config.bat file on a Windows host 3201dd521e FindPkgConfig: Show more info when pkg-config --version fails Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5273
| * | | | | | FindPkgConfig: Search for pkg-config.bat file on a Windows hostAlexandru Croitor2020-09-251-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The strawberry perl distribution ships a pkg-config file and a pkg-config.bat file. find_program() does not usually look for a .bat file program unless explicitly specified in the NAMES argument. This would cause CMake to find the non-bat file, and executing that with execute_process() leads to a '%1 is not a valid Win32 application' error. Prefer to search for pkg-config.bat file when on a Windows host, in additiona to the regular pkg-config file. Fixes: #21239
| * | | | | | FindPkgConfig: Show more info when pkg-config --version failsAlexandru Croitor2020-09-251-1/+3
| |/ / / / / | | | | | | | | | | | | | | | | | | Fixes: #21239
* | | | | | Merge topic 'FPHSA-fix-spurious-error'Brad King2020-09-281-1/+1
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1e82b1c4bc FPHSA: avoid spurious error if version variable is not defined Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5277
| * | | | | | FPHSA: avoid spurious error if version variable is not definedMarc Chevrier2020-09-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: #21241
* | | | | | | Merge topic 'FindJNI-aarch64'Brad King2020-09-281-1/+1
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | / | | |_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | 696d16ae6c FindJNI: Add aarch64 support Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Vitaly Lipatov <lav@etersoft.ru> Merge-request: !5275
| * | | | | FindJNI: Add aarch64 supportBrad King2020-09-251-1/+1
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | Extend the fix from commit 44dffbcc94 (FindJNI: Add arm64 support, 2020-08-25, v3.18.3~21^2) to cover the `aarch64` name too. Fixes: #21237
* | | | | Merge topic 'cuda_clang_separable'Brad King2020-09-255-3/+25
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | c63fe01835 CUDA: Clang separable compilation Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5221
| * | | | | CUDA: Clang separable compilationRaul Tambre2020-09-245-3/+25
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For NVCC the compiler takes care of device linking when passed the "-dlink" flag. Clang doesn't support such magic and requires the buildsystem to do the work that NVCC does behind the scenes. The implementation is based on Bazel's device linking documentation: https://github.com/tensorflow/tensorflow/blob/7cabcdf073abad8c46e9dda62bb8fa4682d2061e/third_party/nccl/build_defs.bzl.tpl#L259 Closes: #20726
* | | | | Merge topic 'clang-llvm-lib'Brad King2020-09-251-1/+2
|\ \ \ \ \ | |/ / / / |/| | | / | | |_|/ | |/| | | | | | | | | | | | | | f5d3da091b Clang: Look for llvm-lib when using MSVC-like front-end Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Thomas Bernard <thomas@famillebernardgouriou.fr> Merge-request: !5264
| * | | Clang: Look for llvm-lib when using MSVC-like front-endShoaib Meenai2020-09-241-1/+2
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In commit 55196a1440 (MSVC: Use 'lib' instead of 'link /lib' to create static libraries, 2020-01-10, v3.18.0-rc1~625^2) we changed CMake to use lib instead of `link /lib` to create static libraries, but it didn't search for `llvm-lib`. If you have `llvm-lib` but not `lib` (e.g. when cross-compiling), when `CMakeFindBinutils` is invoked for the `C` and `CXX` languages, `CMAKE_AR` is not found. When it's subsequently invoked for the ASM language, `CMAKE_ASM_SIMULATE_ID` and `CMAKE_ASM_COMPILER_FRONTEND_VARIANT` are not set (because `CMakeDetermineASMCompiler` doesn't call `CMAKE_DETERMINE_COMPILER_ID`, which sets those variables), so we go down the non-MSVC conditional and set `CMAKE_AR` to a GNU-style `ar`, which of course does not understand lib flags. Explicitly search for `llvm-lib` to avoid this situation.
* | | Merge topic 'check-source-modules'Brad King2020-09-2413-763/+416
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 357e2ef429 CheckSoureRuns: Add a unified way to check if a source runs 10ae907de0 CheckSoureCompiles: Add a unified way to check if a source compiles f5c928f73c Add a test to verify '\' handling in CHECK_CXX_SOURCE_COMPILES Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Michael Hirsch, Ph.D. <michael@scivision.dev> Merge-request: !5223
| * | | CheckSoureRuns: Add a unified way to check if a source runsRobert Maynard2020-09-236-387/+212
| | | |
| * | | CheckSoureCompiles: Add a unified way to check if a source compilesRobert Maynard2020-09-237-376/+204
| | | |
* | | | Merge topic 'FindPython-fix-regex'Brad King2020-09-241-1/+1
|\ \ \ \ | | |_|/ | |/| | | | | | | | | | | | | | | | | | 6c094c1c1e FindPython: Fix erroneous regex in ABI check Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5257
| * | | FindPython: Fix erroneous regex in ABI checkMarc Chevrier2020-09-231-1/+1
| | |/ | |/| | | | | | | | | | | | | | | | | | | A regex added by commit 6fdfe2428d (FindPython: enhance ABI checks against include directory, 2020-09-02, v3.18.3~17^2) was missing a backslash. Fixes: #21223
* | | Merge topic 'find_package-version-range'Craig Scott2020-09-246-63/+226
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5b3356263c CMakePackageConfigHelpers: Add version range support 6bfc442fde FPHSA: add support of version range d7df81067b find_package: Add support of version range 09095dbcd2 cmFindPackageCommand: Refactoring Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Michael Hirsch, Ph.D. <michael@scivision.dev> Merge-request: !5226