mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-21 14:35:27 -04:00
Make sure -L flags from HDF5 wrapper are passed
This commit is contained in:
parent
f1b4e0ae7f
commit
63a378bd93
1 changed files with 5 additions and 0 deletions
|
|
@ -262,6 +262,11 @@ else()
|
|||
target_compile_options(${program} PUBLIC ${f90flags})
|
||||
endif()
|
||||
|
||||
# Add HDF5 library directories to link line with -L
|
||||
foreach(LIBDIR ${HDF5_LIBRARY_DIRS})
|
||||
list(APPEND ldflags "-L${LIBDIR}")
|
||||
endforeach()
|
||||
|
||||
# target_link_libraries treats any arguments starting with - but not -l as
|
||||
# linker flags. Thus, we can pass both linker flags and libraries together.
|
||||
target_link_libraries(${program} ${ldflags} ${HDF5_LIBRARIES} fox_dom)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue