build: remove libfmt dependency
This commit is contained in:
1 parent
0d70ab8a84
commit
e0db35d087
3 files changed
+3
-19
No files matched your search
@@ -106,21 +106,6 @@ INCLUDE(FetchContent)
|
||||
|
||||
SET(FETCHCONTENT_BASE_DIR "${CMAKE_BINARY_DIR}/deps")
|
||||
|
||||
FETCHCONTENT_DECLARE(
|
||||
fmtformat
|
||||
GIT_REPOSITORY https://github.com/fmtlib/fmt
|
||||
GIT_TAG 9.1.0
|
||||
)
|
||||
|
||||
SET_PACKAGE_PROPERTIES(
|
||||
fmtformat PROPERTIES
|
||||
URL "https://github.com/fmtlib/fmt"
|
||||
DESCRIPTION "A modern formatting library"
|
||||
TYPE REQUIRED
|
||||
)
|
||||
FETCHCONTENT_MAKEAVAILABLE(fmtformat)
|
||||
FIND_PACKAGE(fmt)
|
||||
|
||||
# Doxygen
|
||||
IF(BUILD_DOC)
|
||||
FIND_PACKAGE(Doxygen)
|
||||
|
||||
@@ -8,6 +8,6 @@ SET(Calyp_Tools_SRCS main.cpp CalypTools.cpp CalypToolsCmdParser.cpp)
|
||||
|
||||
ADD_EXECUTABLE(${PROJECT_NAME}Tools ${Calyp_Tools_SRCS})
|
||||
|
||||
TARGET_LINK_LIBRARIES(${PROJECT_NAME}Tools ${PROJECT_LIBRARY} CalypModules fmt::fmt)
|
||||
TARGET_LINK_LIBRARIES(${PROJECT_NAME}Tools ${PROJECT_LIBRARY} CalypModules)
|
||||
|
||||
INSTALL(TARGETS ${PROJECT_NAME}Tools DESTINATION bin)
|
||||
@@ -24,10 +24,9 @@
|
||||
|
||||
#include "CalypTools.h"
|
||||
|
||||
#include <fmt/format.h>
|
||||
|
||||
#include <climits>
|
||||
#include <cstring>
|
||||
#include <format>
|
||||
#include <iostream>
|
||||
|
||||
#include "config.h"
|
||||
@@ -722,7 +721,7 @@ int CalypTools::ListStatistics()
|
||||
log( CLP_LOG_RESULT, " Range: " );
|
||||
for( unsigned channel = 0; channel < currFrame->getNumberChannels(); channel++ )
|
||||
{
|
||||
log( CLP_LOG_RESULT, fmt::format( "[{}:{}]", min[channel], max[channel] ) );
|
||||
log( CLP_LOG_RESULT, std::format( "[{}:{}]", min[channel], max[channel] ) );
|
||||
}
|
||||
log( CLP_LOG_RESULT, "|\n" );
|
||||
|
||||
|
||||
Reference in new issue
Block a user