File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -45,9 +45,6 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
4545 # The CUDA `host_runtime.h` header emits this for
4646 # `__cudaUnregisterBinaryUtil`.
4747 nvbench_add_cxx_flag(nvbench.build_interface INTERFACE "/wd4505" )
48-
49- # Required by fmt:
50- nvbench_add_cxx_flag(nvbench.build_interface INTERFACE "/utf-8" )
5148else ()
5249 nvbench_add_cxx_flag(nvbench.build_interface INTERFACE "-Wall" )
5350 nvbench_add_cxx_flag(nvbench.build_interface INTERFACE "-Wextra" )
@@ -75,6 +72,11 @@ endif()
7572if (CMAKE_CUDA_COMPILER_ID STREQUAL "NVIDIA" )
7673 # fmtlib uses llvm's _BitInt internally, which is not available when compiling through nvcc:
7774 target_compile_definitions (nvbench.build_interface INTERFACE "FMT_USE_BITINT=0" )
75+
76+ # NVCC + MSVC does not support unicode execution encoding, disable usages of utf-8 in fmt:
77+ if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC" )
78+ target_compile_definitions (nvbench.build_interface INTERFACE "FMT_UNICODE=0" )
79+ endif ()
7880endif ()
7981
8082target_compile_options (nvbench.build_interface INTERFACE
You can’t perform that action at this time.
0 commit comments