mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
Tests/FortranModules: also test INTERFACE targets with Fortran sources
This commit is contained in:
@@ -131,4 +131,5 @@ add_subdirectory(Issue25223)
|
||||
if( # Intel Fortran VS Integration breaks on custom targets with Fortran sources
|
||||
NOT CMAKE_GENERATOR MATCHES "Visual Studio")
|
||||
add_subdirectory(Issue25252)
|
||||
add_subdirectory(Issue25252-iface-target)
|
||||
endif()
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
add_library(fortran_source_iface INTERFACE
|
||||
iface.f90)
|
||||
|
||||
add_library(lib25252-iface-target lib.f90)
|
||||
add_dependencies(lib25252-iface-target fortran_source_iface)
|
||||
@@ -0,0 +1,5 @@
|
||||
program main
|
||||
|
||||
implicit none
|
||||
|
||||
end program
|
||||
@@ -0,0 +1,11 @@
|
||||
module lib
|
||||
|
||||
implicit none
|
||||
|
||||
contains
|
||||
|
||||
pure real function func()
|
||||
func = 1.0
|
||||
end function
|
||||
|
||||
end module
|
||||
Reference in New Issue
Block a user