From 44922f734d5694260e0e1a456daf1d7fe9d8d2a8 Mon Sep 17 00:00:00 2001 From: Tom Payerle Date: Tue, 29 Aug 2023 16:57:02 -0400 Subject: boxlib: Add BL_USE_PARTICLES cmake var (#39660) Set BL_USE_PARTICLES to 1, which should case boxlib build to include Particles classes according to CMakeLists.txt. This seems to fix #18172 The aforementioned error seems to occur in cmake phase while processing CMakeLists.txt in Src/C_ParticleLib, and appears to be due to the variable containing the list of src files for the add_library() call being empty unless BL_USE_PARTICLES is set to 1. --- var/spack/repos/builtin/packages/boxlib/package.py | 1 + 1 file changed, 1 insertion(+) diff --git a/var/spack/repos/builtin/packages/boxlib/package.py b/var/spack/repos/builtin/packages/boxlib/package.py index 6f36545ed2..aa82407333 100644 --- a/var/spack/repos/builtin/packages/boxlib/package.py +++ b/var/spack/repos/builtin/packages/boxlib/package.py @@ -32,6 +32,7 @@ class Boxlib(CMakePackage): options.extend( [ "-DBL_SPACEDIM=%d" % int(spec.variants["dims"].value), + "-DBL_USE_PARTICLES=1", "-DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=ON", "-DENABLE_FBASELIB=ON", "-DCMAKE_C_COMPILER=%s" % spec["mpi"].mpicc, -- cgit v1.2.3-70-g09d2