Commit Graph

49967 Commits

Author SHA1 Message Date
Brad King 566e96d42d CMake 3.17.5 v3.17.5 2020-09-15 08:34:16 -04:00
Brad King 2058c7a4f7 Merge branch 'backport-3.17-automoc-path-prefix-off' into release-3.17 2020-09-15 08:32:26 -04:00
Brad King 3ef992eb06 Merge branch 'release-3.16' into release-3.17 2020-09-15 08:32:11 -04:00
Joerg Bornemann 205d5431d7 Help: Add 3.17.5 release note about AUTOMOC_PATH_PREFIX default change 2020-09-15 08:31:35 -04:00
Brad King b9bcec40c1 Merge branch 'backport-3.16-automoc-path-prefix-off' 2020-09-15 08:29:12 -04:00
Brad King 43ddc64032 CMake 3.16.9 v3.16.9 2020-09-15 08:11:59 -04:00
Brad King 37b669a4ff Merge branch 'backport-3.16-automoc-path-prefix-off' into release-3.16 2020-09-15 08:11:45 -04:00
Joerg Bornemann 52217c3440 Help: Add 3.16.9 release note about AUTOMOC_PATH_PREFIX default change 2020-09-15 08:10:31 -04:00
Brad King 2d661d9ddd Merge topic 'cuda_clang_scattered_cross'
2c0d5d01ee CUDA: Support scattered installations when crosscompiling with Clang

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5222
2020-09-15 07:56:25 -04:00
Marc Chevrier fa910f51fd Merge topic 'commands-unordered-map'
967792a662 cmState: store commands in unordered_map

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5219
2020-09-15 04:21:30 -04:00
Kitware Robot f495e25b4e CMake Nightly Date Stamp 2020-09-15 00:01:17 -04:00
Thomas Bernard 013270ef09 Clang: Detect lld-link when using gnu front end with msvc target
Fixes: #21137
2020-09-14 22:00:17 +02:00
Mattias Ellert 68349ae214 Find{BLAS,LAPACK}: Add support for FlexiBLAS
http://www.mpi-magdeburg.mpg.de/mpcsc/software/FlexiBLAS/
2020-09-14 21:40:33 +02:00
Brad King de9a2f1ef6 Help: Move CMAKE_XCODE_GENERATE_SCHEME to proper manual section 2020-09-14 13:14:38 -04:00
Brad King b4fc4da903 ExternalProject: Add policy CMP0114 to refine step target dependencies
`ExternalProject_Add_StepTargets` and `INDEPENDENT_STEP_TARGETS` have
some limitations and lack some sanity checks.  They can cause confusing
build systems to be generated.  The basic problems are:

* The notion of step independence is attached to the step target
  rather than the step itself.

* The custom commands implementing the steps are duplicated in the
  step targets and the primary targets.  This can cause races.
  It is also incompatible with the Xcode "new build system".

Fix this by introducing policy CMP0114 to change the way step target
dependencies are handled.  Define independence from external
dependencies as a property of each individual step regardless of whether
there is a target for it.  Add dependencies among the primary target and
the step targets such that each custom command only appears in one
target.  When some steps are disconnected from the primary target, add
step targets for the steps commonly depended upon so that there is a
place to hold their custom commands uniquely.

Fixes: #18663
2020-09-14 10:48:16 -04:00
Kyle Edwards b8fd97735b Merge topic 'findpython-docs-fixes'
b564ced24f FindPython: fix typo in Python_LIBRARY_DIRS

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5220
2020-09-14 10:23:46 -04:00
Brad King ce7e615fe8 Merge topic 'add_COMPILER_TARGET_for_all_clang_variants_on_windows'
cf83758b24 Clang: Implement CMAKE_${LANG}_COMPILER_TARGET for all variants on windows

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5192
2020-09-14 10:20:50 -04:00
Brad King acca494801 Merge topic 'test-pch-instantiate-templates'
0512e94eb0 Tests: Fix PchInstantiateTemplates case on macOS with CMAKE_OSX_ARCHITECTURES

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5217
2020-09-14 10:20:09 -04:00
Brad King 06c16b8b08 Merge topic 'import-export-doc'
3310801aab Help: Add Importing and Exporting Guide

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Michael Hirsch, Ph.D. <michael@scivision.dev>
Merge-request: !5157
2020-09-14 10:19:23 -04:00
Raul Tambre 2c0d5d01ee CUDA: Support scattered installations when crosscompiling with Clang
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.
2020-09-14 14:40:32 +03:00
Kitware Robot fe2eadf091 CMake Nightly Date Stamp 2020-09-14 00:01:20 -04:00
Kitware Robot 54c3d4f006 CMake Nightly Date Stamp 2020-09-13 00:01:09 -04:00
Kitware Robot 71133488ef CMake Nightly Date Stamp 2020-09-12 00:01:17 -04:00
Philipp Storz b564ced24f FindPython: fix typo in Python_LIBRARY_DIRS
Fixes the wrong spelling of Python_LIBRARY_DIRS as
"Python_LIBRAY_DIRS" which exists in
  - FindPython
  - FindPython2
  - FindPython3
2020-09-11 20:35:34 +02:00
Oleksandr Koval 967792a662 cmState: store commands in unordered_map 2020-09-11 20:31:11 +03:00
Thomas Bernard cf83758b24 Clang: Implement CMAKE_${LANG}_COMPILER_TARGET for all variants on windows
Fixes: #21097
2020-09-11 09:05:03 -04:00
Betsy McPhail 3310801aab Help: Add Importing and Exporting Guide 2020-09-11 08:50:52 -04:00
Brad King 907a3de1c4 Merge topic 'ispc_window_failures'
bf88a94d88 ISPC: CompilerLauncher tests work properly with x86 builds
8de145cae1 ISPC: DynamicLibrary test now passes on windows.
a83521e082 ISPC: Use the `obj` file extension for objects on windows

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5213
2020-09-11 08:31:13 -04:00
Brad King 5b5d2dc766 Merge topic 'armclang-fixes' into release-3.18
3d1ed986e2 ARMClang: Fix link line generation after addition of armlink support

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Osama Moharam <osama.moharam.uw@renesas.com>
Merge-request: !5211
2020-09-11 08:30:33 -04:00
Brad King ed7323b66c Merge branch 'release-3.18' 2020-09-11 08:30:33 -04:00
Brad King 8924b60f8d Merge topic 'armclang-fixes'
3d1ed986e2 ARMClang: Fix link line generation after addition of armlink support

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Osama Moharam <osama.moharam.uw@renesas.com>
Merge-request: !5211
2020-09-11 08:30:33 -04:00
Brad King 1db8c1dce2 Merge topic 'file-GENERATE-earlier' into release-3.18
aee2c51224 file(GENERATE): Create output file structures for all directories first

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5209
2020-09-11 08:27:12 -04:00
Brad King 5e7cbaacc4 Merge branch 'release-3.18' 2020-09-11 08:27:12 -04:00
Brad King a8b3217915 Merge topic 'file-GENERATE-earlier'
aee2c51224 file(GENERATE): Create output file structures for all directories first

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5209
2020-09-11 08:27:12 -04:00
Brad King 0512e94eb0 Tests: Fix PchInstantiateTemplates case on macOS with CMAKE_OSX_ARCHITECTURES
Update the test added by commit 8c8f03422e (PCH: Template instantiation
support, 2020-08-28) to recognize flags on PCH files whose names include
the architecture.  This occurs when `CMAKE_OSX_ARCHITECTURES` is set.
2020-09-11 08:06:20 -04:00
Kitware Robot 60b10d4fad CMake Nightly Date Stamp 2020-09-11 00:01:15 -04:00
Brad King f5791e24c6 Tests: Match RunCMake.ExternalProject NO_DEPENDS output more strictly 2020-09-10 18:14:23 -04:00
Brad King b637ef494c ExternalProject: Factor out an internal helper to add a step target 2020-09-10 18:14:23 -04:00
Marc Chevrier 3d1ed986e2 ARMClang: Fix link line generation after addition of armlink support
Revise logic added by commit 73fb6ac82b (ARMClang: Add support for
armlink, 2020-06-02, v3.18.0-rc1~27^2).

Fixes: #21154
2020-09-10 16:33:14 -04:00
Brad King 48ed3bae58 Merge topic 'pch-instantiate-templates'
8c8f03422e PCH: Template instantiation support

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Raul Tambre <raul@tambre.ee>
Acked-by: Cristian Adam <cristian.adam@gmail.com>
Tested-by: Raul Tambre <raul@tambre.ee>
Merge-request: !5168
2020-09-10 16:32:39 -04:00
Robert Maynard bf88a94d88 ISPC: CompilerLauncher tests work properly with x86 builds 2020-09-10 16:15:55 -04:00
Robert Maynard 8de145cae1 ISPC: DynamicLibrary test now passes on windows.
The MSVC linker needs to know what MSVC runtime a shared library
needs. ISPC objects don't have a '/DIRECTIVE' entry for the
MSVC runtime as they have no dependency on it. Therefore
we need to add a C or C++ source to each shared library so
the MSVC linker knows what runtime to embed
2020-09-10 16:15:55 -04:00
Robert Maynard a83521e082 ISPC: Use the obj file extension for objects on windows 2020-09-10 16:15:55 -04:00
Josef Angstenberger aee2c51224 file(GENERATE): Create output file structures for all directories first
Since commit 36ded610af (PCH: Generate sources during Compute step,
2019-10-05, v3.16.0-rc1~2^2) the source file lookup is done earlier than
before.  Its parent commit f1fb63b306 (file(GENERATE): Create output
file structures even earlier, 2019-10-07, v3.16.0-rc1~2^2~1) prepared
for that.  However, that commit did not account for generating and
using files in separate subdirectories.

Fix this by evaluating all generated files before adding automatic
files.

Fixes: #21144
2020-09-10 16:13:01 -04:00
Brad King e32f4da74a Merge topic 'fix_add_library_documentation'
0a5c3e3b97 Help: add_library(<name> OBJECT) can omit the source files

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5212
2020-09-10 16:05:53 -04:00
Brad King 5b3644fba6 Merge branch 'release-3.18' 2020-09-10 16:02:56 -04:00
Brad King 06cb6a1628 Merge topic 'gitlab-ci-prefer-mr' into release-3.18
f6a80ffd54 gitlab-ci: Prefer MR rules for any pipeline associated with a MR

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5214
2020-09-10 16:02:56 -04:00
Brad King 99044f8e16 Merge topic 'gitlab-ci-prefer-mr'
f6a80ffd54 gitlab-ci: Prefer MR rules for any pipeline associated with a MR

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5214
2020-09-10 16:02:56 -04:00
Brad King f6a80ffd54 gitlab-ci: Prefer MR rules for any pipeline associated with a MR
GitLab 13.3 started creating MR pipelines in the parent project of a MR
from a fork, at least when the MR submitter is a developer in the parent
project.  If the pipeline is associated with a MR, we should use the
corresponding rules regardless of which project hosts the pipeline.
2020-09-10 15:48:13 -04:00
Deniz Bahadir 0a5c3e3b97 Help: add_library(<name> OBJECT) can omit the source files 2020-09-10 16:59:34 +02:00