diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/gearshifft/gearshifft-v0.4.0-cmake-variable-name.patch')
-rw-r--r-- | var/spack/repos/builtin/packages/gearshifft/gearshifft-v0.4.0-cmake-variable-name.patch | 22 |
1 files changed, 22 insertions, 0 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() |