mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Add {fmt} modern formatting library as dependency
This commit is contained in:
parent
8f242d0b07
commit
da53b43375
3 changed files with 12 additions and 1 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
|
@ -10,3 +10,6 @@
|
|||
[submodule "vendor/xtl"]
|
||||
path = vendor/xtl
|
||||
url = https://github.com/xtensor-stack/xtl.git
|
||||
[submodule "vendor/fmt"]
|
||||
path = vendor/fmt
|
||||
url = https://github.com/fmtlib/fmt.git
|
||||
|
|
|
|||
|
|
@ -140,6 +140,13 @@ endif()
|
|||
|
||||
add_subdirectory(vendor/pugixml)
|
||||
|
||||
#===============================================================================
|
||||
# {fmt} library
|
||||
#===============================================================================
|
||||
|
||||
set(FMT_INSTALL ON CACHE BOOL "Generate the install target.")
|
||||
add_subdirectory(vendor/fmt)
|
||||
|
||||
#===============================================================================
|
||||
# xtensor header-only library
|
||||
#===============================================================================
|
||||
|
|
@ -346,7 +353,7 @@ 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 faddeeva xtensor gsl-lite-v1)
|
||||
pugixml faddeeva xtensor gsl-lite-v1 fmt::fmt)
|
||||
|
||||
if(dagmc)
|
||||
target_compile_definitions(libopenmc PRIVATE DAGMC)
|
||||
|
|
|
|||
1
vendor/fmt
vendored
Submodule
1
vendor/fmt
vendored
Submodule
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 65ac626c5856f5aad1f1542e79407a6714357043
|
||||
Loading…
Add table
Add a link
Reference in a new issue