Add the fmt library (#4065)
* Replaces AppendVPrintf with fmt::sprintf * fmt::ArgList now used as a type safe alternative to varargs. * Removed SIZE_T_FMT compatibility macros. fmt::sprintf is fully portable and supports %zu. * Adds FLOG functions to log with fmt's native formatting style.
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
cmake_minimum_required(VERSION 3.0.2)
|
||||
enable_testing()
|
||||
add_definitions(-DTEST_GLOBALS=1)
|
||||
|
||||
@@ -25,6 +26,7 @@ set (SRCS
|
||||
source_group("Shared" FILES ${SHARED_SRCS} ${SHARED_HDRS})
|
||||
source_group("Sources" FILES ${SRCS})
|
||||
add_executable(FastRandom-exe ${SRCS} ${SHARED_SRCS} ${SHARED_HDRS})
|
||||
target_link_libraries(FastRandom-exe fmt::fmt)
|
||||
if (WIN32)
|
||||
target_link_libraries(FastRandom-exe ws2_32)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user