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 @@ -66,15 +66,17 @@ else()
6666 endif ()
6767endif ()
6868
69- # fmtlib uses llvm's _BitInt internally, which is not available when compiling through nvcc:
70- target_compile_definitions (nvbench.build_interface INTERFACE "FMT_USE_BITINT=0" )
71-
7269# Experimental filesystem library
7370if (CMAKE_CXX_COMPILER_ID STREQUAL GNU OR CMAKE_CXX_COMPILER_ID STREQUAL Clang)
7471 target_link_libraries (nvbench.build_interface INTERFACE stdc++fs)
7572endif ()
7673
7774# CUDA-specific flags
75+ if (CMAKE_CUDA_COMPILER_ID STREQUAL "NVIDIA" )
76+ # fmtlib uses llvm's _BitInt internally, which is not available when compiling through nvcc:
77+ target_compile_definitions (nvbench.build_interface INTERFACE "FMT_USE_BITINT=0" )
78+ endif ()
79+
7880target_compile_options (nvbench.build_interface INTERFACE
7981 $<$<COMPILE_LANG_AND_ID:CUDA,NVIDIA>:-Xcudafe=--display_error_number>
8082 $<$<COMPILE_LANG_AND_ID:CUDA,NVIDIA>:-Wno-deprecated-gpu-targets>
You can’t perform that action at this time.
0 commit comments