From fcc971fd8703c37b8e0e02dabfe95138b4979309 Mon Sep 17 00:00:00 2001 From: Sebastian Ehlert <28669218+awvwgk@users.noreply.github.com> Date: Tue, 10 Nov 2020 20:28:43 +0100 Subject: Allow external link dependencies with scope limited to targets - move reader for string list to toml-f proxy - allow link entry in executable and test tables - bump toml-f version to v0.2.1 - add example package linking a single executable against gomp --- example_packages/link_executable/.gitignore | 1 + example_packages/link_executable/app/main.f90 | 11 +++++++++++ example_packages/link_executable/fpm.toml | 8 ++++++++ 3 files changed, 20 insertions(+) create mode 100644 example_packages/link_executable/.gitignore create mode 100644 example_packages/link_executable/app/main.f90 create mode 100644 example_packages/link_executable/fpm.toml (limited to 'example_packages/link_executable') diff --git a/example_packages/link_executable/.gitignore b/example_packages/link_executable/.gitignore new file mode 100644 index 0000000..a007fea --- /dev/null +++ b/example_packages/link_executable/.gitignore @@ -0,0 +1 @@ +build/* diff --git a/example_packages/link_executable/app/main.f90 b/example_packages/link_executable/app/main.f90 new file mode 100644 index 0000000..b1df402 --- /dev/null +++ b/example_packages/link_executable/app/main.f90 @@ -0,0 +1,11 @@ +program gomp_example + implicit none + + interface + integer function omp_get_num_procs() + end function + end interface + + print *, omp_get_num_procs() + +end program gomp_example diff --git a/example_packages/link_executable/fpm.toml b/example_packages/link_executable/fpm.toml new file mode 100644 index 0000000..f3545ca --- /dev/null +++ b/example_packages/link_executable/fpm.toml @@ -0,0 +1,8 @@ +name = "link_executable" +build.auto-executables = false + +[[executable]] +name = "gomp_test" +source-dir = "app" +main = "main.f90" +link = ["gomp"] -- cgit v1.2.3