Skip to content

Commit 35efdfb

Browse files
committed
fixup! [HostJit] Avoid shadowing warnings from globals
1 parent 587ae93 commit 35efdfb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

c/parallel.v2/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ target_link_libraries(
8686
if (WIN32)
8787
target_link_libraries(cccl.c.parallel.v2 PRIVATE Dbghelp)
8888
# We are shadowing a lot of variables with the globals like num_items
89-
target_compile_options(cccl.c.parallel.v2 PRIVATE "-Xcompiler=/wd4459")
89+
target_compile_options(cccl.c.parallel.v2 PRIVATE $<$<COMPILE_LANG_AND_ID:CUDA,NVIDIA>:-Xcompiler=/wd4459>)
9090
endif()
9191

9292
target_compile_definitions(

0 commit comments

Comments
 (0)