diff --git a/cmake/warnings.cmake b/cmake/warnings.cmake index 69d0063..28415ce 100644 --- a/cmake/warnings.cmake +++ b/cmake/warnings.cmake @@ -102,8 +102,10 @@ function(add_warnings_target tgt_name warnings_as_errors) target_compile_options(${tgt_name} INTERFACE $<$:$>) elseif (CMAKE_${LANG}_COMPILER_ID MATCHES "NVIDIA") - target_compile_options(${tgt_name} INTERFACE - $<$:$>) + if(NOT WIN32) # Currently warnings with nvcc on windows are problematic + target_compile_options(${tgt_name} INTERFACE + $<$:$>) + endif() elseif (CMAKE_${LANG}_COMPILER_ID MATCHES "MSVC") target_compile_options(${tgt_name} INTERFACE $<$:$>)