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
This commit is contained in:
Brad King
2023-09-20 14:16:07 +00:00
committed by Kitware Robot
22 changed files with 176 additions and 8 deletions
+3 -2
View File
@@ -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;
}