forked from spack/spack
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #353 from AlexanderRichert-NOAA/release/1.5.0-nco
approve me: updates for nco branch
- Loading branch information
Showing
8 changed files
with
57 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,6 +52,7 @@ class Zstd(CMakePackage, MakefilePackage): | |
values=any_combination_of("zlib", "lz4", "lzma"), | ||
description="Enable support for additional compression methods in programs", | ||
) | ||
variant("pic", default=True, description="Enable position-independent code (PIC)") | ||
|
||
depends_on("zlib", when="compression=zlib") | ||
depends_on("lz4", when="compression=lz4") | ||
|
@@ -61,6 +62,8 @@ class Zstd(CMakePackage, MakefilePackage): | |
# (last tested: [email protected]) | ||
conflicts("+programs %nvhpc") | ||
|
||
conflicts("+pic libs=shared") | ||
|
||
build_system("cmake", "makefile", default="makefile") | ||
|
||
|
||
|
@@ -77,6 +80,7 @@ def cmake_args(self): | |
[ | ||
self.define("ZSTD_BUILD_STATIC", self.spec.satisfies("libs=static")), | ||
self.define("ZSTD_BUILD_SHARED", self.spec.satisfies("libs=shared")), | ||
self.define_from_variant("CMAKE_POSITION_INDEPENDENT_CODE", "pic"), | ||
] | ||
) | ||
if "compression=zlib" in spec: | ||
|