magma: remove -W args from CMakeLists.txt when using nvhpc (#20516)
This commit is contained in:
parent
8860db4021
commit
8956c8c7b7
2 changed files with 13 additions and 0 deletions
12
var/spack/repos/builtin/packages/magma/cmake-W.patch
Normal file
12
var/spack/repos/builtin/packages/magma/cmake-W.patch
Normal 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)
|
|
@ -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.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.patch', when='@2.5.0')
|
||||||
patch('magma-2.5.0-cmake.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):
|
def cmake_args(self):
|
||||||
spec = self.spec
|
spec = self.spec
|
||||||
|
|
Loading…
Reference in a new issue