File tree Expand file tree Collapse file tree 3 files changed +16
-6
lines changed Expand file tree Collapse file tree 3 files changed +16
-6
lines changed Original file line number Diff line number Diff line change 2525
2626
2727 macos :
28+ needs : linux
29+ runs-on : macos-latest
2830 env :
2931 FC : gfortran-11
30- runs-on : macos-latest
32+
3133 steps :
3234 - uses : actions/checkout@v2
3335
3840
3941 windows :
4042 runs-on : windows-latest
43+ env :
44+ CMAKE_GENERATOR : MinGW Makefiles
45+
4146 steps :
4247 - uses : actions/checkout@v2
4348
44- - run : cmake --preset default -G "MinGW Makefiles"
49+ - run : cmake --preset default
4550 - run : cmake --build build --parallel
4651 - run : ctest --preset default
Original file line number Diff line number Diff line change @@ -29,8 +29,10 @@ include(CTest)
2929
3030include (cmake/compilers.cmake)
3131
32+ set (CMAKE_CXX_STANDARD 11)
33+ set (CMAKE_C_STANDARD 99)
34+
3235add_library (c_lib call_c.c)
33- target_compile_features (c_lib PRIVATE c_std_99)
3436
3537add_executable (f_call_c f_call_c.f90 $<TARGET_OBJECTS:c_lib>)
3638add_test (NAME FortranCallC COMMAND f_call_c)
@@ -39,14 +41,16 @@ add_test(NAME FortranCallC COMMAND f_call_c)
3941add_library (call_f OBJECT c_call_f.f90)
4042
4143add_executable (cxx_call_f cxx_call_f.cxx $<TARGET_OBJECTS:call_f>)
42- target_compile_features (cxx_call_f PRIVATE cxx_std_11)
4344add_test (NAME CXXCallFortran COMMAND cxx_call_f)
4445
4546# -- Fortran calling C++
4647add_library (cxx_lib OBJECT call_cxx.cxx)
47- target_compile_features (cxx_lib PRIVATE cxx_std_11)
4848
4949add_executable (f_call_cxx f_call_c.f90 $<TARGET_OBJECTS:cxx_lib>)
5050# LINKER_LANGUAGE option is necessary for ifort at least
5151set_target_properties (f_call_cxx PROPERTIES LINKER_LANGUAGE Fortran)
5252add_test (NAME FortranCallC++ COMMAND f_call_cxx)
53+
54+ set_tests_properties (FortranCallC CXXCallFortran FortranCallC++
55+ PROPERTIES
56+ TIMEOUT 5)
Original file line number Diff line number Diff line change 3535 },
3636 "execution" : {
3737 "noTestsAction" : " error" ,
38- "stopOnFailure" : false }
38+ "stopOnFailure" : false
39+ }
3940}
4041]
4142}
You can’t perform that action at this time.
0 commit comments