Skip to content

Commit dee9400

Browse files
committed
Disable fmtlib's use of llvm _BitInt, as it is not supported when using nvcc.
1 parent eac4dfe commit dee9400

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmake/NVBenchConfigTarget.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ else()
6363
endif()
6464
endif()
6565

66+
# fmtlib uses llvm's _BitInt internally, which is not available when compiling through nvcc:
67+
target_compile_definitions(nvbench.build_interface INTERFACE "FMT_USE_BITINT=0")
68+
6669
# Experimental filesystem library
6770
if (CMAKE_CXX_COMPILER_ID STREQUAL GNU OR CMAKE_CXX_COMPILER_ID STREQUAL Clang)
6871
target_link_libraries(nvbench.build_interface INTERFACE stdc++fs)

0 commit comments

Comments
 (0)