Skip to content

Commit d1363f8

Browse files
committed
fix(windows): disable fmtlib's utf-8 support to compile
1 parent b43f1c3 commit d1363f8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,9 @@ set(BUILD_SHARED_LIBS OFF)
285285

286286
if (TCNN_EXTERNAL_FMT)
287287
list(APPEND TCNN_LIBRARIES "${TCNN_EXTERNAL_FMT}")
288+
list(APPEND TCNN_DEFINITIONS -DFMT_UNICODE=0)
288289
else()
290+
set(FMT_UNICODE OFF CACHE BOOL " " FORCE)
289291
add_subdirectory("dependencies/fmt")
290292
list(APPEND TCNN_LIBRARIES fmt)
291293
list(APPEND TCNN_INCLUDES "dependencies/fmt/include")

0 commit comments

Comments
 (0)