From c59f68a33dd0f04f0c90ecedf677a5b7066646fb Mon Sep 17 00:00:00 2001 From: Tom Payerle Date: Wed, 6 Sep 2023 19:20:04 -0400 Subject: [PATCH] seacas: Set TPL_ENABLE_Pthread=ON when +thread_safe (#39703) * seacas: Set TPL_ENABLE_Pthread=ON when +thread_safe This should fix #39702 Basically, following suggestion of error message and setting TPL_ENABLE_Pthread to the value of the boolean spack variant thread_safe * seacas: Fix style issue Add space after comment # --- var/spack/repos/builtin/packages/seacas/package.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/var/spack/repos/builtin/packages/seacas/package.py b/var/spack/repos/builtin/packages/seacas/package.py index e058db747a..ce54a90368 100644 --- a/var/spack/repos/builtin/packages/seacas/package.py +++ b/var/spack/repos/builtin/packages/seacas/package.py @@ -195,6 +195,8 @@ def cmake_args(self): from_variant("BUILD_SHARED_LIBS", "shared"), from_variant("SEACASExodus_ENABLE_THREADSAFE", "thread_safe"), from_variant("SEACASIoss_ENABLE_THREADSAFE", "thread_safe"), + # SEACASExodus_ENABLE_THREADSAFE=ON requires TPL_ENABLE_Pthread=ON + from_variant("TPL_ENABLE_Pthread", "thread_safe"), from_variant("TPL_ENABLE_X11", "x11"), from_variant(project_name_base + "_ENABLE_Fortran", "fortran"), ]