File tree Expand file tree Collapse file tree 4 files changed +4
-0
lines changed Expand file tree Collapse file tree 4 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ add_library(bool_fortran OBJECT lib.f90)
44
55add_executable (c_fortran_bool main.c)
66target_link_libraries (c_fortran_bool PRIVATE bool_fortran)
7+ set_target_properties (c_fortran_bool PROPERTIES LINKER_LANGUAGE C)
78add_test (NAME C_Fortran_bool COMMAND c_fortran_bool)
89
910add_executable (cxx_fortran_bool main.cpp)
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ set_directory_properties(PROPERTIES LABELS opaque)
33add_library (opaque_fortran OBJECT lib.f90)
44
55add_executable (c_opaque main.c)
6+ set_target_properties (c_opaque PROPERTIES LINKER_LANGUAGE C)
67target_link_libraries (c_opaque PRIVATE opaque_fortran)
78add_test (NAME C_Fortran_opaque COMMAND c_opaque)
89
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ set_directory_properties(PROPERTIES LABELS pointer)
33add_library (pointer_fortran OBJECT lib.f90)
44
55add_executable (c_fortran_pointer main.c)
6+ set_target_properties (c_fortran_pointer PROPERTIES LINKER_LANGUAGE C)
67target_link_libraries (c_fortran_pointer PRIVATE pointer_fortran)
78add_test (NAME C_Fortran_pointer COMMAND c_fortran_pointer)
89
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ set_directory_properties(PROPERTIES LABELS poly_type)
33add_library (poly_type_lib OBJECT lib.f90)
44
55add_executable (c_poly_type main.c)
6+ set_target_properties (c_poly_type PROPERTIES LINKER_LANGUAGE C)
67target_link_libraries (c_poly_type PRIVATE poly_type_lib)
78add_test (NAME C_Fortran_poly_type COMMAND c_poly_type)
89
You can’t perform that action at this time.
0 commit comments