test cases/fortran/24 both_libraries/meson.build
raw| 1 | project('fmodbug', 'fortran', default_options: ['default_library=both']) |
| 2 | |
| 3 | lib = library('mylib', 'modsrc.f90') |
| 4 | # CI also runs with other default_library settings |
| 5 | lib_linked = get_option('default_library') == 'both' ? lib.get_static_lib() : lib |
| 6 | exe = executable('myexe', 'main.f90', link_with: lib_linked) |