Skip to content

Commit 3ccd532

Browse files
committed
intel oneapi needs C linker_language
1 parent edcf3af commit 3ccd532

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

src/bool/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ add_library(bool_fortran OBJECT lib.f90)
44

55
add_executable(c_fortran_bool main.c)
66
target_link_libraries(c_fortran_bool PRIVATE bool_fortran)
7+
set_target_properties(c_fortran_bool PROPERTIES LINKER_LANGUAGE C)
78
add_test(NAME C_Fortran_bool COMMAND c_fortran_bool)
89

910
add_executable(cxx_fortran_bool main.cpp)

src/opaque/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ set_directory_properties(PROPERTIES LABELS opaque)
33
add_library(opaque_fortran OBJECT lib.f90)
44

55
add_executable(c_opaque main.c)
6+
set_target_properties(c_opaque PROPERTIES LINKER_LANGUAGE C)
67
target_link_libraries(c_opaque PRIVATE opaque_fortran)
78
add_test(NAME C_Fortran_opaque COMMAND c_opaque)
89

src/pointer/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ set_directory_properties(PROPERTIES LABELS pointer)
33
add_library(pointer_fortran OBJECT lib.f90)
44

55
add_executable(c_fortran_pointer main.c)
6+
set_target_properties(c_fortran_pointer PROPERTIES LINKER_LANGUAGE C)
67
target_link_libraries(c_fortran_pointer PRIVATE pointer_fortran)
78
add_test(NAME C_Fortran_pointer COMMAND c_fortran_pointer)
89

src/poly_type/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ set_directory_properties(PROPERTIES LABELS poly_type)
33
add_library(poly_type_lib OBJECT lib.f90)
44

55
add_executable(c_poly_type main.c)
6+
set_target_properties(c_poly_type PROPERTIES LINKER_LANGUAGE C)
67
target_link_libraries(c_poly_type PRIVATE poly_type_lib)
78
add_test(NAME C_Fortran_poly_type COMMAND c_poly_type)
89

0 commit comments

Comments
 (0)