Skip to content

Commit 0061b4b

Browse files
committedSep 26, 2021
struct_cxx needed linker_langauge for i
fort
1 parent 1dfe272 commit 0061b4b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ add_test(NAME Fortran_C++_math COMMAND fortran_cxx_math)
1313

1414
add_executable(fortran_cxx_struct fortran/struct_main.f90)
1515
target_link_libraries(fortran_cxx_struct PRIVATE struct_cxx)
16+
set_target_properties(fortran_cxx_struct PROPERTIES LINKER_LANGUAGE Fortran)
1617
add_test(NAME Fortran_C++_struct COMMAND fortran_cxx_struct)
1718

1819
# -- Fortran calling C

0 commit comments

Comments
 (0)
Please sign in to comment.