spack/var/spack/repos/builtin/packages/nnvm/cmake2.patch
liuyangzhuan 83f97e8eba
Adding packages for gptune and its dependencies (#26936)
* added package gptune with all its dependencies: adding py-autotune, pygmo, py-pyaml, py-autotune, py-gpy, py-lhsmdu, py-hpbandster, pagmo2, py-opentuner; modifying superlu-dist, py-scikit-optimize

* adding gptune package

* minor fix for macos spack test

* update patch for py-scikit-optimize; update test files for gptune

* fixing gptune package style error

* fixing unit tests

* a few changes reviewed in the PR

* improved gptune package.py with a few newly added/improved dependencies

* fixed a few style errors

* minor fix on package name py-pyro4

* fixing more style errors

* Update var/spack/repos/builtin/packages/py-scikit-optimize/package.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* resolved a few issues in the PR

* fixing file permissions

* a few minor changes

* style correction

* minor correction to jq package file

* Update var/spack/repos/builtin/packages/py-pyro4/package.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* fixing a few issues in the PR

* adding py-selectors34 required by py-pyro4

* improved the superlu-dist package

* improved the superlu-dist package

* moree changes to gptune and py-selectors34 based on the PR

* Update var/spack/repos/builtin/packages/py-selectors34/package.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
2021-11-24 16:06:43 -06:00

21 lines
850 B
Diff

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