nnvm: cmake bug is fixed. (#12113)
This commit is contained in:
parent
cb62b1ff85
commit
bbc689ae38
2 changed files with 21 additions and 0 deletions
20
var/spack/repos/builtin/packages/nnvm/cmake2.patch
Executable file
20
var/spack/repos/builtin/packages/nnvm/cmake2.patch
Executable file
|
@ -0,0 +1,20 @@
|
|||
diff -ru spack-src/CMakeLists.txt spack-src.new/CMakeLists.txt
|
||||
--- spack-src/CMakeLists.txt 2019-07-24 10:51:47.679702195 +0900
|
||||
+++ spack-src.new/CMakeLists.txt 2019-07-24 11:05:21.199748764 +0900
|
||||
@@ -38,7 +38,13 @@
|
||||
check_cxx_compiler_flag("-std=c++0x" SUPPORT_CXX0X)
|
||||
check_cxx_compiler_flag("-msse2" SUPPORT_MSSE2)
|
||||
check_cxx_compiler_flag("-openmp" SUPPORT_OPENMP)
|
||||
- set(CMAKE_C_FLAGS "-O3 -Wall -msse2 -Wno-unknown-pragmas -std=c++0x -fPIC")
|
||||
+ set(CMAKE_C_FLAGS "-O3 -Wall -Wno-unknown-pragmas -fPIC")
|
||||
+ if(SUPPORT_MSSE2)
|
||||
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -msse2")
|
||||
+ endif()
|
||||
+ if(SUPPORT_CXX0X)
|
||||
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c++0x")
|
||||
+ endif()
|
||||
if(SUPPORT_OPENMP)
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fopenmp")
|
||||
endif()
|
||||
Only in spack-src.new: CMakeLists.txt.org
|
||||
Only in spack-src: .git
|
|
@ -21,6 +21,7 @@ class Nnvm(CMakePackage):
|
|||
depends_on('dmlc-core')
|
||||
|
||||
patch('cmake.patch')
|
||||
patch('cmake2.patch', when='@20170418')
|
||||
|
||||
def cmake_args(self):
|
||||
spec = self.spec
|
||||
|
|
Loading…
Reference in a new issue