Skip to content

Commit

Permalink
[CMake] Disable warnings with Nvidia's nvc++ compiler
Browse files Browse the repository at this point in the history
XRootD may be built as part of ROOT as a "builtin", so try to be nice
by suppressing nvc++ warnings to avoid polluting ROOT's own build log.

Issue: xrootd#2361
  • Loading branch information
amadio committed Oct 28, 2024
1 parent fb574cb commit 6fb6440
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmake/XRootDOSDefs.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ if( CMAKE_COMPILER_IS_GNUCXX )
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-parameter" )
endif()

# Disable warnings with nvc++ (for when we are built as ROOT built-in dependency)

if(CMAKE_CXX_COMPILER_ID MATCHES "NVHPC")
add_compile_options(-w)
endif()

#-------------------------------------------------------------------------------
# Linux
#-------------------------------------------------------------------------------
Expand Down

0 comments on commit 6fb6440

Please sign in to comment.