Skip to content

Commit 77c4154

Browse files
committed
Minor fix: for setting executable link libraries.
Executable link libraries were not working when auto discovery was on.
1 parent 8841ab8 commit 77c4154

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

example_packages/link_executable/fpm.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
name = "link_executable"
2-
build.auto-executables = false
32

43
[[executable]]
54
name = "gomp_test"

fpm/src/fpm_sources.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ subroutine add_executable_sources(sources,executables,scope,auto_discover,error)
161161

162162
sources(j)%exe_name = executables(i)%name
163163
if (allocated(executables(i)%link)) then
164-
exe_source%link_libraries = executables(i)%link
164+
sources(j)%link_libraries = executables(i)%link
165165
end if
166166
cycle exe_loop
167167

0 commit comments

Comments
 (0)