diff --git a/.spack/repo/packages/csg-eb/package.py b/.spack/repo/packages/csg-eb/package.py index 56674970281f2b107b1be5295ad4be02887cb47c..b62554fa264443ba294793d6947f7739f6bc0a71 100644 --- a/.spack/repo/packages/csg-eb/package.py +++ b/.spack/repo/packages/csg-eb/package.py @@ -18,13 +18,14 @@ class CsgEb(CMakePackage): variant("cgal", default=True, description="Build with CGAL Support") - depends_on("pegtl") - depends_on("catch2") - depends_on("cgal", when="+cgal") + depends_on("pegtl", type="link") + depends_on("catch2", type="link") + depends_on("cgal", when="+cgal", type="link") def cmake_args(self): return [ - "-DCSG_CGAL_ENABLED={}".format("True" if "+cgal" in self.spec else "False") + "-DCSG_CGAL_ENABLED={}".format("True" if "+cgal" in self.spec else "False"), + "-DBUILD_SHARED_LIBS=1" ] def setup_run_environment(self, env):