Skip to content

Commit

Permalink
CMake: Fix invalid NVIDIA compiler switches: nvc++-Error-Unknown switch
Browse files Browse the repository at this point in the history
  • Loading branch information
shahramn committed Mar 24, 2024
1 parent da1059e commit b1a25c7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,12 @@ if( EC_OS_NAME MATCHES "windows" )

else()

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wno-unused-parameter -Wno-overloaded-virtual -Wno-unused-variable -Wno-reorder -Wno-sign-compare")
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wno-unused-parameter -Wno-overloaded-virtual -Wno-unused-variable -Wno-reorder -Wno-sign-compare")
ecbuild_add_cxx_flags("-Wno-unused-parameter" NO_FAIL)
ecbuild_add_cxx_flags("-Wno-overloaded-virtual" NO_FAIL)
ecbuild_add_cxx_flags("-Wno-unused-variable" NO_FAIL)
ecbuild_add_cxx_flags("-Wno-reorder" NO_FAIL)
ecbuild_add_cxx_flags("-Wno-sign-compare" NO_FAIL)

# set(CMAKE_CXX_FLAGS "-Wall -Wextra -Wno-unused-parameter -Wno-overloaded-virtual -Wno-unused-variable -Wno-reorder-ctor -Wno-sign-compare")

Expand Down

0 comments on commit b1a25c7

Please sign in to comment.