Skip to content

Commit

Permalink
disable nvcc warnings on windows for now
Browse files Browse the repository at this point in the history
  • Loading branch information
neilkichler committed Jan 23, 2025
1 parent 298dbd9 commit ae96bbc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmake/warnings.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,10 @@ function(add_warnings_target tgt_name warnings_as_errors)
target_compile_options(${tgt_name} INTERFACE
$<$<COMPILE_LANGUAGE:${LANG}>:$<BUILD_INTERFACE:${COMMON_WARNINGS_${LANG}} ${CLANG_WARNINGS_${LANG}}>>)
elseif (CMAKE_${LANG}_COMPILER_ID MATCHES "NVIDIA")
target_compile_options(${tgt_name} INTERFACE
$<$<COMPILE_LANGUAGE:${LANG}>:$<BUILD_INTERFACE:${NVCC_WARNINGS_${LANG}}>>)
if(NOT WIN32) # Currently warnings with nvcc on windows are problematic
target_compile_options(${tgt_name} INTERFACE
$<$<COMPILE_LANGUAGE:${LANG}>:$<BUILD_INTERFACE:${NVCC_WARNINGS_${LANG}}>>)
endif()
elseif (CMAKE_${LANG}_COMPILER_ID MATCHES "MSVC")
target_compile_options(${tgt_name} INTERFACE
$<$<COMPILE_LANGUAGE:${LANG}>:$<BUILD_INTERFACE:${MSVC_WARNINGS_${LANG}}>>)
Expand Down

0 comments on commit ae96bbc

Please sign in to comment.