Add {fmt} modern formatting library as dependency

This commit is contained in:
Paul Romano 2020-01-13 07:02:06 -06:00
parent 8f242d0b07
commit da53b43375
3 changed files with 12 additions and 1 deletions

3
.gitmodules vendored
View file

@ -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

View file

@ -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

@ -0,0 +1 @@
Subproject commit 65ac626c5856f5aad1f1542e79407a6714357043