update exercise build option for 0.14.0 (#27338)

This commit is contained in:
Chris White 2021-11-11 17:06:08 -08:00 committed by GitHub
parent f548243e9e
commit 1d8c2498ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -129,7 +129,12 @@ def initconfig_package_entries(self):
entries.append(cmake_cache_path("camp_DIR", spec['camp'].prefix))
entries.append(cmake_cache_option("BUILD_SHARED_LIBS", '+shared' in spec))
entries.append(cmake_cache_option("ENABLE_EXAMPLES", '+examples' in spec))
entries.append(cmake_cache_option("ENABLE_EXERCISES", '+exercises' in spec))
if spec.satisfies('@0.14.0:'):
entries.append(cmake_cache_option("RAJA_ENABLE_EXERCISES",
'+exercises' in spec))
else:
entries.append(cmake_cache_option("ENABLE_EXERCISES",
'+exercises' in spec))
# Work around spack adding -march=ppc64le to SPACK_TARGET_ARGS which
# is used by the spack compiler wrapper. This can go away when BLT