mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
different cases for linking pugixml depending on version
This commit is contained in:
parent
2ab0e23bc6
commit
ad10441659
1 changed files with 7 additions and 1 deletions
|
|
@ -437,7 +437,13 @@ endif()
|
|||
# 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(libopenmc ${ldflags} ${HDF5_LIBRARIES} ${HDF5_HL_LIBRARIES}
|
||||
pugixml::pugixml faddeeva xtensor gsl::gsl-lite-v1 fmt::fmt)
|
||||
faddeeva xtensor gsl::gsl-lite-v1 fmt::fmt)
|
||||
|
||||
if(TARGET pugixml::pugixml)
|
||||
target_link_libraries(libopenmc pugixml::pugixml)
|
||||
else()
|
||||
target_link_libraries(libopenmc pugixml)
|
||||
endif()
|
||||
|
||||
if(dagmc)
|
||||
target_compile_definitions(libopenmc PRIVATE DAGMC)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue