diff options
author | Christoph Junghans <junghans@lanl.gov> | 2020-04-10 13:36:28 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-10 14:36:28 -0500 |
commit | 78a9f73874b55f566fcea8832309769a99dfc73a (patch) | |
tree | 85e0bdcb3cee82844f47122b56cd51b0cd293ee8 | |
parent | 8e597e8a7a9a5536b481efa161ec8828e2b3e9d3 (diff) | |
download | spack-78a9f73874b55f566fcea8832309769a99dfc73a.tar.gz spack-78a9f73874b55f566fcea8832309769a99dfc73a.tar.bz2 spack-78a9f73874b55f566fcea8832309769a99dfc73a.tar.xz spack-78a9f73874b55f566fcea8832309769a99dfc73a.zip |
votca-tools: add mkl support (#15997)
* votca-tools: add mkl support
* Update package.py
-rw-r--r-- | var/spack/repos/builtin/packages/votca-tools/package.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/votca-tools/package.py b/var/spack/repos/builtin/packages/votca-tools/package.py index f9eaedb6fa..a26faeba97 100644 --- a/var/spack/repos/builtin/packages/votca-tools/package.py +++ b/var/spack/repos/builtin/packages/votca-tools/package.py @@ -30,6 +30,9 @@ class VotcaTools(CMakePackage): # https://github.com/votca/tools/pull/197, fix cmake module patch("https://github.com/votca/tools/pull/197.patch", sha256="a06cce2a9cee63c8d01e4d1833f9cd2ba817b846c86fdb51ea5c9cd843135e68", when="@1.6_rc1") + variant('mkl', default=False, description='Build with MKL support') + conflicts('+mkl', when='@:1.5.9999') + depends_on("cmake@2.8:", type='build') depends_on("expat") depends_on("fftw") @@ -37,9 +40,14 @@ class VotcaTools(CMakePackage): depends_on("eigen@3.3:", when="@1.5:") depends_on("boost") depends_on("sqlite", when="@:1.5.9999") + depends_on('mkl', when='+mkl') def cmake_args(self): args = [ '-DWITH_RC_FILES=OFF' ] + + if '~mkl' in self.spec: + args.append('-DCMAKE_DISABLE_FIND_PACKAGE_MKL=ON') + return args |