pflogger: Add v1.12 (#42288)
* pflogger: add version 1.12 * Add version * return MPI variant to false default * [@spackbot] updating style on behalf of mathomp4 --------- Co-authored-by: mathomp4 <mathomp4@users.noreply.github.com>
This commit is contained in:
		| @@ -22,6 +22,7 @@ class Pflogger(CMakePackage): | ||||
|     version("develop", branch="develop") | ||||
|     version("main", branch="main") | ||||
| 
 | ||||
|     version("1.12.0", sha256="ff29b0ce4baf50675edb69c3c7493be5410839b5f81e3ce5405f04925503fb0d") | ||||
|     version("1.11.0", sha256="bf197b6f223a75c7d3eee23888cdde204b5aea053c308852a3f8f677784b8899") | ||||
|     version("1.10.0", sha256="8e25564699c0adcbe9a23fded6637668ce659480b39420be5a4c8181cd44ad53") | ||||
|     version("1.9.5", sha256="baa3ebb83962f1b6c8c5b0413fe9d02411d3e379c76b8c190112e158c10ac0ac") | ||||
| @@ -56,6 +57,9 @@ class Pflogger(CMakePackage): | ||||
| 
 | ||||
|     depends_on("mpi", when="+mpi") | ||||
| 
 | ||||
|     # Using pFlogger with MPICH 4 is only supported from version 1.11 | ||||
|     conflicts("^mpich@4:", when="@:1.10") | ||||
| 
 | ||||
|     depends_on("cmake@3.12:", type="build") | ||||
| 
 | ||||
|     def cmake_args(self): | ||||
| @@ -65,4 +69,10 @@ def cmake_args(self): | ||||
|         if spec.satisfies("+mpi"): | ||||
|             args.extend(["-DCMAKE_Fortran_COMPILER=%s" % spec["mpi"].mpifc]) | ||||
| 
 | ||||
|         # From version 1.12 on, there is an `ENABLE_MPI` option that | ||||
|         # defaults to `ON`. If we don't want MPI, we need to set it to | ||||
|         # `OFF` | ||||
|         if spec.satisfies("@1.12: ~mpi"): | ||||
|             args.append("-DENABLE_MPI=OFF") | ||||
| 
 | ||||
|         return args | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Matthew Thompson
					Matthew Thompson