diff options
-rw-r--r-- | var/spack/repos/builtin/packages/gearshifft/gearshifft-v0.4.0-cmake-variable-name.patch | 22 | ||||
-rw-r--r-- | var/spack/repos/builtin/packages/gearshifft/package.py | 6 |
2 files changed, 26 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/gearshifft/gearshifft-v0.4.0-cmake-variable-name.patch b/var/spack/repos/builtin/packages/gearshifft/gearshifft-v0.4.0-cmake-variable-name.patch new file mode 100644 index 0000000000..5e71928c2d --- /dev/null +++ b/var/spack/repos/builtin/packages/gearshifft/gearshifft-v0.4.0-cmake-variable-name.patch @@ -0,0 +1,22 @@ +diff --git spack-src/cmake/init_build_type.cmake.org spack-src/cmake/init_build_type.cmake +index c826f5d..4239dd0 100644 +--- spack-src/cmake/init_build_type.cmake.org ++++ spack-src/cmake/init_build_type.cmake +@@ -1,6 +1,6 @@ + # Default build type to use if none was specified +-if(NOT DEFINED CMAKE_DEFAULT_BUILD_TYPE) +- set(CMAKE_DEFAULT_BUILD_TYPE "Release") ++if(NOT DEFINED GEARSHIFFT_DEFAULT_BUILD_TYPE) ++ set(GEARSHIFFT_DEFAULT_BUILD_TYPE "Release") + endif() + + set(CMAKE_BUILD_TYPE ${CMAKE_DEFAULT_BUILD_TYPE} CACHE STRING "Build type") +@@ -14,6 +14,6 @@ set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS + + # sets default build type if none was specified + if(NOT CMAKE_BUILD_TYPE) +- message(STATUS "No build type selected, default to ${CMAKE_DEFAULT_BUILD_TYPE}") +- set(CMAKE_BUILD_TYPE ${CMAKE_DEFAULT_BUILD_TYPE} CACHE STRING "Build type" FORCE) ++ message(STATUS "No build type selected, default to ${GEARSHIFFT_DEFAULT_BUILD_TYPE}") ++ set(CMAKE_BUILD_TYPE ${GEARSHIFFT_DEFAULT_BUILD_TYPE} CACHE STRING "Build type" FORCE) + endif() diff --git a/var/spack/repos/builtin/packages/gearshifft/package.py b/var/spack/repos/builtin/packages/gearshifft/package.py index afdd19ac89..3ba91a2ba6 100644 --- a/var/spack/repos/builtin/packages/gearshifft/package.py +++ b/var/spack/repos/builtin/packages/gearshifft/package.py @@ -12,9 +12,11 @@ class Gearshifft(CMakePackage): homepage = "https://github.com/mpicbg-scicomp/gearshifft" url = "https://github.com/mpicbg-scicomp/gearshifft/archive/v0.2.1-lw.tar.gz" - maintainers = ['ax3l'] + maintainers = ['zyzzyxdonta'] - version('0.2.1-lw', sha256='04ba7401615ab29a37089c0dce8580270c0c4aa1ba328c9d438d6e4f163899c5') + version('0.4.0', sha256='15b9e4bfa1d9b4fe4ae316f289c67b7be0774cdada5bd7310df4d0e026d9d227') + + patch('gearshifft-v0.4.0-cmake-variable-name.patch', when='@0.4.0') variant('cufft', default=True, description='Compile gearshifft_cufft') |