summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* CMake GUI: Split up into libraries, add test shimKyle Edwards2020-09-233-7/+31
|
* QCMakeCacheView: Default to nullptr for parentKyle Edwards2020-09-231-1/+1
|
* Merge topic 'separate_arguments-program'Brad King2020-09-2319-74/+297
|\ | | | | | | | | | | | | | | d832c1cc7d separate_arguments: add option PROGRAM f4c21d4953 separate_arguments: refactoring Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5253
| * separate_arguments: add option PROGRAMMarc Chevrier2020-09-2213-8/+188
| | | | | | | | Fixes: #21217
| * separate_arguments: refactoringMarc Chevrier2020-09-228-70/+113
| |
* | Merge topic 'test-issue-21144'Brad King2020-09-232-0/+11
|\ \ | | | | | | | | | | | | | | | | | | e02f677f61 Tests: Add test for early source lookup of file(GENERATE) Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5248
| * | Tests: Add test for early source lookup of file(GENERATE)Josef Angstenberger2020-09-212-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The output file structures of file(GENERATE) have to be created early to be able to use the generated files in source lists. This was not done correctly for subdirectories which has been fixed in commit aee2c51224 (file(GENERATE): Create output file structures for all directories first, 2020-09-10). Add a test case to address issue #21144.
* | | Merge topic 'FindProtobuf-threads'Brad King2020-09-231-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | ae41216878 FindProtobuf: Link to threads dependency only when Protobuf is found Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5251
| * | | FindProtobuf: Link to threads dependency only when Protobuf is foundBrad King2020-09-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit 03454b0d0d (FindProtobuf: Add missing link dependencies on threads, 2018-10-31, v3.13.0-rc3~10^2) we add the threads library to the list of libraries needed for Protobuf. Update the logic to do this only when a real protobuf library is actually found. Fixes: #21161
* | | | Merge topic 'install-EXPORT-source-CONFIG'Brad King2020-09-232-3/+16
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bf114602da install(EXPORT): Fix exporting target w/ source named using CONFIG genex Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5240
| * | | | install(EXPORT): Fix exporting target w/ source named using CONFIG genexDeniz Bahadir2020-09-222-3/+16
| | | | | | | | | | | | | | | | | | | | Fixes: #21203
* | | | | Merge topic 'cuda_tests_architecture'Brad King2020-09-2323-61/+30
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4fe9f534f5 Tests: Don't unnecessarily set CUDA_ARCHITECTURES Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5246
| * | | | | Tests: Don't unnecessarily set CUDA_ARCHITECTURESRaul Tambre2020-09-2123-61/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Architecture 30 was removed with CUDA 11, so most of the CUDA tests fail with it. Remove setting the architecture and bump the minimum version to 3.18, so CMP0104 takes effect and we can rely on the default architecture, which is guaranteed to be compilable. Use of __ldg() in ProperLinkFlags was removed as it only affects performance and is available only on sm_35 and above. Testing the functionality of CUDA_ARCHITECTURES is already covered by CudaOnly.Architecture and CudaOnly.CompileFlags.
* | | | | | Merge topic 'binary-dir-props'Brad King2020-09-238-15/+64
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f2daa025e3 {get,set}_property: Add support for referencing binary directories Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Ben Boeckel <ben.boeckel@kitware.com> Merge-request: !5254
| * | | | | | {get,set}_property: Add support for referencing binary directoriesBrad King2020-09-238-15/+64
| | |_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Index directories by their binary directory path in addition to their source directory path. Fixes: #19262
* | | | | | CMake Nightly Date StampKitware Robot2020-09-231-1/+1
|/ / / / /
* | | | | Merge branch 'release-3.18' into masterBrad King2020-09-220-0/+0
|\ \ \ \ \ | |_|_|/ / |/| | | |
| * | | | CMake 3.18.3v3.18.3Brad King2020-09-221-1/+1
| | | | |
* | | | | Merge topic 'cmake_path-updates'Brad King2020-09-223-49/+240
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 82c9508313 cmake_path: enhancements Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Ben Boeckel <ben.boeckel@kitware.com> Merge-request: !5245
| * | | | | cmake_path: enhancementsMarc Chevrier2020-09-203-49/+240
| | |/ / / | |/| | | | | | | | | | | | | | | | | | * Fix error on parsing "c:a" (root-name without root-directory) * Enrich documentation
* | | | | Merge topic 'comp-ti-std-options'Brad King2020-09-224-13/+142
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6a66bb13ed Compiler/TI: Add std options for C++14 fe9cddf181 Compiler/TI: Add std options for C++98 55fc045aa8 Compiler/TI: Add std options for C11 2e69993101 Compiler/TI: Check default C standard 8300030f71 Compiler/TI: Check compiler version for C99 support 0b4582f229 Compiler/TI: Fix definition of std options a70df0d6f0 Compiler/TI: Avoid generic variable name in macro Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5249
| * | | | | Compiler/TI: Add std options for C++14Josef Angstenberger2020-09-201-4/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The TI compiler does either support C++98 or C++14, but not both at the same time.
| * | | | | Compiler/TI: Add std options for C++98Josef Angstenberger2020-09-202-1/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The TI compiler does not support C++98, only C++03 (based on manual of current version). This change sets the C++98 option to C++03 based on the fact that it is done this way for the SunPro compiler already.
| * | | | | Compiler/TI: Add std options for C11Josef Angstenberger2020-09-201-0/+11
| | | | | |
| * | | | | Compiler/TI: Check default C standardJosef Angstenberger2020-09-202-0/+19
| | | | | |
| * | | | | Compiler/TI: Check compiler version for C99 supportJosef Angstenberger2020-09-201-4/+35
| | | | | |
| * | | | | Compiler/TI: Fix definition of std optionsJosef Angstenberger2020-09-201-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - The compile option variable has to be defined as list. - The compiler works in relaxed ANSI mode by default. Strict ANSI has to be explicitly set additionally to the language standard.
| * | | | | Compiler/TI: Avoid generic variable name in macroJosef Angstenberger2020-09-201-8/+7
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In commit a548a52230 (Compiler/TI: Refactor C/CXX to use a common file, 2020-07-11) a variable named `prefix` has been introduced. It is set in the callers namespace because it was defined inside a macro, not a function. Avoid such generic variable name.
* | | | | Merge topic 'file-ARCHIVE-compression-level'Brad King2020-09-2223-16/+284
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 195d14e781 file(ARCHIVE_CREATE): Add option to control compression level Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Cristian Adam <cristian.adam@gmail.com> Merge-request: !5242
| * | | | | file(ARCHIVE_CREATE): Add option to control compression levelAsit Dhal2020-09-2123-16/+284
| | | | | | | | | | | | | | | | | | | | | | | | Fixes: #21125
* | | | | | Merge topic 'findthreads_missing_prototype'Brad King2020-09-221-1/+1
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6ef64013ba FindThreads: Add missing static keyword in pthread test code Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Rolf Eike Beer <eike@sf-mail.de> Merge-request: !5241
| * | | | | | FindThreads: Add missing static keyword in pthread test codePavel Otchertsov2020-09-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When CMAKE_C_FLAGS contains '-Werror -Wmissing-prototypes' the pthread test code check fails with error: "src.c:3:7: error: no previous prototype for 'test_func' [-Werror=missing-prototypes]". Adding 'static' keyword to 'test_func' fixes it.
* | | | | | | Merge topic 'FindGLEW-platform'Brad King2020-09-221-2/+1
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d628ac0eb8 FindGLEW: Avoid using CMAKE_GENERATOR_PLATFORM to detect platform Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5244
| * | | | | | | FindGLEW: Avoid using CMAKE_GENERATOR_PLATFORM to detect platformAsit Dhal2020-09-211-2/+1
| | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use `CMAKE_SIZEOF_VOID_P` instead. Fixes: #21128
* | | | | | | Merge topic 'findcudatoolkit_cross_scattered'Brad King2020-09-223-9/+12
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 9d3f7872e1 FindCUDAToolkit: Support scattered installations when crosscompiling Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5247
| * | | | | | | FindCUDAToolkit: Support scattered installations when crosscompilingRaul Tambre2020-09-203-9/+12
| | |_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously when CMAKE_CROSSCOMPILING was ON we'd end up not setting the target directory if the non-scattered one didn't exist. Fix this by assuming a scattered installation if the target directory isn't set after the crosscompiling logic. This is the same fix as commit 2c0d5d01ee (CUDA: Support scattered installations when crosscompiling with Clang, 2020-09-14).
* | | | | | | Merge branch 'release-3.17' into masterBrad King2020-09-220-0/+0
|\ \ \ \ \ \ \
| * \ \ \ \ \ \ Merge branch 'backport-3.17-check-compiler-flag-result' into release-3.17Brad King2020-09-212-2/+0
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge-request: !5250
* | \ \ \ \ \ \ \ Merge branch 'release-3.18'Brad King2020-09-220-0/+0
|\ \ \ \ \ \ \ \ \ | | |_|_|_|_|/ / / | |/| | | | | | |
| * | | | | | | | Merge topic 'check-compiler-flag-result' into release-3.18Brad King2020-09-222-2/+0
| |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d4390c13e9 Merge branch 'backport-3.17-check-compiler-flag-result' d46590910c Check*CompilerFlag: Do not set result as a normal variable too Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Alexander Grund <github@grundis.de> Merge-request: !5250
* | \ \ \ \ \ \ \ \ Merge topic 'check-compiler-flag-result'Brad King2020-09-222-2/+0
|\ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d4390c13e9 Merge branch 'backport-3.17-check-compiler-flag-result' d46590910c Check*CompilerFlag: Do not set result as a normal variable too Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Alexander Grund <github@grundis.de> Merge-request: !5250
| * | | | | | | | | Merge branch 'backport-3.17-check-compiler-flag-result'Brad King2020-09-212-2/+0
| |\ \ \ \ \ \ \ \ \ | | |/ / / / / / / / | |/| | / / / / / / | | | |/ / / / / / | | |/| | | | | |
| | * | | | | | | Check*CompilerFlag: Do not set result as a normal variable tooBrad King2020-09-212-2/+0
| | |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactoring in commit cb984c6627 (Check*CompilerFlag: Modernize modules, 2019-12-09, v3.17.0-rc1~320^2) accidentally left the result set as a normal variable in addition to as a cache entry. This is not specified by the documentation, and is not the behavior in CMake 3.16 and below. Fixes: #21207
* | | | | | | | CMake Nightly Date StampKitware Robot2020-09-221-1/+1
| |_|_|_|_|_|/ |/| | | | | |
* | | | | | | Merge topic 'xcode-12-new-build-system'Brad King2020-09-2159-91/+748
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b8ecd4df5f ExternalProject: Use CMP0114 NEW behavior with Xcode "new build system" fe258f6382 Tests: Skip RunCMake.XcodeProject device cases for Xcode "new build system" 1c3d2d0951 Tests: Skip Qt*Autogen.MocSkipSource case for Xcode "new build system" 542884e527 Tests: Update RunCMake.XcodeProject cases for Xcode "new build system" 832a78be2d Tests: Update BuildDepends test for Xcode "new build system" ff76c51ec3 Tests: Update RunCMake.file case with workaround for Xcode "new build system" 1806cdd17c Tests: Avoid duplicate custom commands for Xcode "new build system" 8d5f4c4db9 Xcode: Switch to the "new build system" for Xcode 12 and above ... Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5229
| * | | | | | | ExternalProject: Use CMP0114 NEW behavior with Xcode "new build system"Brad King2020-09-1812-8/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The ExternalProject module cannot be implemented in the Xcode "new build system" without using CMP0114's NEW behavior. When configuring for that build system, warn if the policy is not set to NEW and use NEW behavior anyway.
| * | | | | | | Tests: Skip RunCMake.XcodeProject device cases for Xcode "new build system"Brad King2020-09-181-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Xcode "new build system" selects different architectures for device builds than the old build system does. Skip those tests on Xcode 12+ pending further investigation. Issue: #21206
| * | | | | | | Tests: Skip Qt*Autogen.MocSkipSource case for Xcode "new build system"Brad King2020-09-181-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This test case enables AUTOMOC on the same sources in two separate targets. This causes the `moc_*.cpp` generation custom commands to be added to multiple `_autogen` targets, which is not allowed by the Xcode "new build system". Skip the part of the test that triggers this problem for now. Issue: #21205
| * | | | | | | Tests: Update RunCMake.XcodeProject cases for Xcode "new build system"Brad King2020-09-181-1/+3
| | | | | | | |
| * | | | | | | Tests: Update BuildDepends test for Xcode "new build system"Brad King2020-09-182-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Xcode somehow tracks what we're running inside a custom command, so we cannot prevent it from regenerating the `noregen.h` header even though we do not declare any dependencies of it.