magma: remove -W args from CMakeLists.txt when using nvhpc (#20516)

This commit is contained in:
jkelling 2021-01-06 10:51:05 +01:00 committed by GitHub
parent 8860db4021
commit 8956c8c7b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 0 deletions

View file

@ -0,0 +1,12 @@
diff -ru magma-2.5.0-orig/CMakeLists.txt magma-2.5.0/CMakeLists.txt
--- magma-2.5.0-orig/CMakeLists.txt 2019-01-02 11:18:39.000000000 -0800
+++ magma-2.5.0/CMakeLists.txt 2019-04-03 15:58:01.871234891 -0700
@@ -363,8 +363,6 @@
else()
# Primarily for gcc / nvcc:
# Ignore unused static functions in headers.
- set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wno-unused-function" )
- set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wno-unused-function" )
endif()
if (CMAKE_HOST_APPLE)

View file

@ -52,6 +52,7 @@ class Magma(CMakePackage, CudaPackage):
patch('magma-2.3.0-gcc-4.8.patch', when='@2.3.0%gcc@:4.8')
patch('magma-2.5.0.patch', when='@2.5.0')
patch('magma-2.5.0-cmake.patch', when='@2.5.0')
patch('cmake-W.patch', when='@2.5.0:%nvhpc')
def cmake_args(self):
spec = self.spec