Skip to content

Commit b156d7e

Browse files
authored
Merge pull request #398 from LKedward/fix-exe-links
Minor fix: for setting executable link libraries.
2 parents 8841ab8 + 77c4154 commit b156d7e

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)