diff options
author | Brad King <brad.king@kitware.com> | 2023-09-20 14:16:07 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2023-09-20 14:16:18 (GMT) |
commit | 787dde55693559eb7608f59218cae049ef0f2f0a (patch) | |
tree | 43024dc19771d542432b436db2471826f8604365 /Source/cmComputeLinkInformation.cxx | |
parent | 7b1e930b0f8366367c912614f6365d83f77ccd58 (diff) | |
parent | d870a47e2382b15e66f2ef1990415e37d7723e25 (diff) | |
download | CMake-787dde55693559eb7608f59218cae049ef0f2f0a.zip CMake-787dde55693559eb7608f59218cae049ef0f2f0a.tar.gz CMake-787dde55693559eb7608f59218cae049ef0f2f0a.tar.bz2 |
Merge topic 'fortran-in-custom-targets'
d870a47e23 Tests/FortranModules: add a test for iface Fortran sources
e3d511fb9c Tests/FortranModules: also test INTERFACE targets with Fortran sources
978b68d3bb add_custom_target: Fix regression with Fortran sources
619aca80ae Tests/FortranModules: add a test case for #25223
45513c1a69 Tests/FortranModules: move issue 25112 fix from FortranOnly
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8814
Diffstat (limited to 'Source/cmComputeLinkInformation.cxx')
-rw-r--r-- | Source/cmComputeLinkInformation.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmComputeLinkInformation.cxx b/Source/cmComputeLinkInformation.cxx index 91395e2..4cf3042 100644 --- a/Source/cmComputeLinkInformation.cxx +++ b/Source/cmComputeLinkInformation.cxx @@ -544,8 +544,9 @@ bool cmComputeLinkInformation::Compute() this->Target->GetType() == cmStateEnums::SHARED_LIBRARY || this->Target->GetType() == cmStateEnums::MODULE_LIBRARY || this->Target->GetType() == cmStateEnums::STATIC_LIBRARY || - this->Target->HaveCxx20ModuleSources() || - this->Target->HaveFortranSources())) { + (this->Target->CanCompileSources() && + (this->Target->HaveCxx20ModuleSources() || + this->Target->HaveFortranSources())))) { return false; } |