diff options
author | Brad King <brad.king@kitware.com> | 2019-02-04 14:41:57 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-02-04 19:13:46 (GMT) |
commit | d3d2c3cd497e09281a8f237b5a4cd35d8cd298f0 (patch) | |
tree | 9a2dc72e8e0612a82ef8660ea59896b65db2fd4a /Tests/CPackTestAllGenerators/CMakeLists.txt | |
parent | 6e91f5d6204e650c808b6585074faa248ee6e6a9 (diff) | |
download | CMake-d3d2c3cd497e09281a8f237b5a4cd35d8cd298f0.zip CMake-d3d2c3cd497e09281a8f237b5a4cd35d8cd298f0.tar.gz CMake-d3d2c3cd497e09281a8f237b5a4cd35d8cd298f0.tar.bz2 |
VS: Fix Fortran target type selection when linking C++ targets
Since commit 2c9f35789d (VS: Decide project type by linker lang as
fallback, 2017-03-30, v3.9.0-rc1~340^2) we consider the linker language
when detecting whether to generate a `.vfproj` or `.vcxproj` file.
However, this could cause C-only projects to become `.vfproj` files if
they link to Fortran projects. Instead we should consider only the
`LINKER_LANGUAGE` property on the target itself. This approach is
already used for CSharp. It allows project code to specify the project
file type for a target with no sources but does not allow linked targets
to affect it.
Fixes: #18687
Diffstat (limited to 'Tests/CPackTestAllGenerators/CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions