refactor: add libsmall dependency (#5649)

* refactor: add small dependency

* refactor: use small in variant.cc

* refactor: use small in cache.h
This commit is contained in:
Charles Kerr
2023-06-20 22:50:36 -05:00
committed by GitHub
parent 548f840b8d
commit 432fc9bafc
9 changed files with 64 additions and 44 deletions

11
cmake/FindSmall.cmake Normal file
View File

@@ -0,0 +1,11 @@
add_library(small::small INTERFACE IMPORTED)
target_include_directories(small::small
INTERFACE
${CMAKE_CURRENT_LIST_DIR}/../third-party/small/include)
target_compile_definitions(fmt::fmt-header-only
INTERFACE
SMALL_DISABLE_EXCEPTIONS=1)