From e79f275bc90fe3ba8a93bc28bd4565dd4903a351 Mon Sep 17 00:00:00 2001 From: Brian Van Essen Date: Mon, 26 Jun 2023 18:25:46 -0700 Subject: CachedCMakePackage: set build type (#38502) Fixed the cached CMake package so that the build_type field is saved in the cached configuration file. --- lib/spack/spack/build_systems/cached_cmake.py | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/spack/spack/build_systems/cached_cmake.py b/lib/spack/spack/build_systems/cached_cmake.py index f1a466597c..ef59698ce6 100644 --- a/lib/spack/spack/build_systems/cached_cmake.py +++ b/lib/spack/spack/build_systems/cached_cmake.py @@ -289,6 +289,7 @@ class CachedCMakeBuilder(CMakeBuilder): "# CMake executable path: {0}".format(self.pkg.spec["cmake"].command.path), "#------------------{0}\n".format("-" * 60), cmake_cache_path("CMAKE_PREFIX_PATH", cmake_prefix_path), + self.define_cmake_cache_from_variant("CMAKE_BUILD_TYPE", "build_type"), ] def initconfig_package_entries(self): -- cgit v1.2.3-60-g2f50