adios2: allow building on Windows (#35102)
This commit is contained in:
		| @@ -54,7 +54,6 @@ class Adios2(CMakePackage, CudaPackage): | |||||||
|     # change how we're supporting differnt library types in the package at anytime if |     # change how we're supporting differnt library types in the package at anytime if | ||||||
|     # spack decides on a standardized way of doing it across packages |     # spack decides on a standardized way of doing it across packages | ||||||
|     variant("shared", default=True, when="+pic", description="Build shared libraries") |     variant("shared", default=True, when="+pic", description="Build shared libraries") | ||||||
|     variant("pic", default=True, description="Build pic-enabled static libraries") |  | ||||||
| 
 | 
 | ||||||
|     # Features |     # Features | ||||||
|     variant("mpi", default=True, description="Enable MPI") |     variant("mpi", default=True, description="Enable MPI") | ||||||
| @@ -95,12 +94,24 @@ class Adios2(CMakePackage, CudaPackage): | |||||||
|     conflicts("%oneapi@:2022.1.0", when="+fortran") |     conflicts("%oneapi@:2022.1.0", when="+fortran") | ||||||
| 
 | 
 | ||||||
|     depends_on("cmake@3.12.0:", type="build") |     depends_on("cmake@3.12.0:", type="build") | ||||||
|     depends_on("pkgconfig", type="build") |  | ||||||
| 
 | 
 | ||||||
|     depends_on("libffi", when="+sst")  # optional in DILL |     for _platform in ["linux", "darwin", "cray"]: | ||||||
|     depends_on("libfabric@1.6.0:", when="+sst")  # optional in EVPath and SST |         depends_on("pkgconfig", type="build", when="platform=%s" % _platform) | ||||||
|     # depends_on('bison', when='+sst')     # optional in FFS, broken package |         variant( | ||||||
|     # depends_on('flex', when='+sst')      # optional in FFS, depends on BISON |             "pic", | ||||||
|  |             default=False, | ||||||
|  |             description="Build pic-enabled static libraries", | ||||||
|  |             when="platform=%s" % _platform, | ||||||
|  |         ) | ||||||
|  |         # libffi and libfabric and not currently supported on Windows | ||||||
|  |         # see Paraview's superbuild handling of libfabric at | ||||||
|  |         # https://gitlab.kitware.com/paraview/paraview-superbuild/-/blob/master/projects/adios2.cmake#L3 | ||||||
|  |         depends_on("libffi", when="+sst platform=%s" % _platform)  # optional in DILL | ||||||
|  |         depends_on( | ||||||
|  |             "libfabric@1.6.0:", when="+sst platform=%s" % _platform | ||||||
|  |         )  # optional in EVPath and SST | ||||||
|  |         # depends_on('bison', when='+sst')     # optional in FFS, broken package | ||||||
|  |         # depends_on('flex', when='+sst')      # optional in FFS, depends on BISON | ||||||
| 
 | 
 | ||||||
|     depends_on("mpi", when="+mpi") |     depends_on("mpi", when="+mpi") | ||||||
|     depends_on("libzmq", when="+dataman") |     depends_on("libzmq", when="+dataman") | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 John W. Parent
					John W. Parent