diff options
author | Brian Van Essen <vanessen1@llnl.gov> | 2023-06-26 18:25:46 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-26 18:25:46 -0700 |
commit | e79f275bc90fe3ba8a93bc28bd4565dd4903a351 (patch) | |
tree | 0599d896c6a792e010df891c51a990243a660fc2 /lib | |
parent | 09b4ed6c8062fb843be7cd9efd06183782b25ef0 (diff) | |
download | spack-e79f275bc90fe3ba8a93bc28bd4565dd4903a351.tar.gz spack-e79f275bc90fe3ba8a93bc28bd4565dd4903a351.tar.bz2 spack-e79f275bc90fe3ba8a93bc28bd4565dd4903a351.tar.xz spack-e79f275bc90fe3ba8a93bc28bd4565dd4903a351.zip |
CachedCMakePackage: set build type (#38502)
Fixed the cached CMake package so that the build_type field is saved
in the cached configuration file.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/build_systems/cached_cmake.py | 1 |
1 files changed, 1 insertions, 0 deletions
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): |