Skip to content

Commit 9f80e70

Browse files
committed
Add libfmt 11.1.4 as dependency
1 parent 9699a1b commit 9f80e70

27 files changed

+20703
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,9 @@ if( NOT ${CMAKE_USE_PTHREADS_INIT} )
346346
message( FATAL_ERROR "Only pthreads supported - thread library found is [${THREADS_LIBRARIES}]" )
347347
endif()
348348

349+
### vendored dependencies
350+
add_subdirectory(third-party)
351+
349352
############################################################################################
350353
# sources
351354

src/eckit/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -945,6 +945,7 @@ ecbuild_add_library(
945945
"${CURL_LIBRARIES}"
946946
"${AIO_LIBRARIES}"
947947
"${RADOS_LIBRARIES}"
948+
fmt::fmt
948949

949950
PUBLIC_LIBS
950951
${CMATH_LIBRARIES}

third-party/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
set(FMT_INSTALL ON)
2+
set(FMT_SYSTEM_HEADERS ON)
3+
add_subdirectory(fmt-11.1.4)
4+
set_target_properties(fmt PROPERTIES
5+
POSITION_INDEPENDENT_CODE ON
6+
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
7+
)

third-party/fmt-11.1.4/.clang-format

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Run manually to reformat a file:
2+
# clang-format -i --style=file <file>
3+
Language: Cpp
4+
BasedOnStyle: Google
5+
IndentPPDirectives: AfterHash
6+
IndentCaseLabels: false
7+
AlwaysBreakTemplateDeclarations: false
8+
DerivePointerAlignment: false
9+
AllowShortCaseLabelsOnASingleLine: true
10+
AlignConsecutiveShortCaseStatements:
11+
Enabled: true
12+
AcrossEmptyLines: true
13+
AcrossComments: true
14+
AlignCaseColons: false

third-party/fmt-11.1.4/.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
*.a
2+
*.so*
3+
*.xcodeproj
4+
*~
5+
.vscode/
6+
.vs/
7+
/CMakeScripts
8+
/Testing
9+
/_CPack_Packages
10+
/install_manifest.txt
11+
CMakeCache.txt
12+
CMakeFiles
13+
CPack*.cmake
14+
CTestTestfile.cmake
15+
FMT.build
16+
Makefile
17+
bin/
18+
build/
19+
cmake_install.cmake
20+
fmt-*.cmake
21+
fmt.pc

0 commit comments

Comments
 (0)