diff options
author | Ryan Viertel <rdviertel@gmail.com> | 2021-02-26 16:35:09 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-26 15:35:09 -0800 |
commit | f957f1936c4f649e34a3b6340b5ab9d3023fbc2d (patch) | |
tree | 0c8479cb9fe03aef9c884941f68611677ecf2f9b | |
parent | 5492e549a537034cbab8ba63675e80452879d107 (diff) | |
download | spack-f957f1936c4f649e34a3b6340b5ab9d3023fbc2d.tar.gz spack-f957f1936c4f649e34a3b6340b5ab9d3023fbc2d.tar.bz2 spack-f957f1936c4f649e34a3b6340b5ab9d3023fbc2d.tar.xz spack-f957f1936c4f649e34a3b6340b5ab9d3023fbc2d.zip |
adds flag to turn off NLOPT_OCTAVE in CMAKE when -octave (#21997)
-rw-r--r-- | var/spack/repos/builtin/packages/nlopt/package.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/nlopt/package.py b/var/spack/repos/builtin/packages/nlopt/package.py index 3beb7d9966..5b8dac7c6d 100644 --- a/var/spack/repos/builtin/packages/nlopt/package.py +++ b/var/spack/repos/builtin/packages/nlopt/package.py @@ -55,6 +55,10 @@ class Nlopt(CMakePackage): if '-shared' in spec: args.append('-DBUILD_SHARED_LIBS:Bool=OFF') + # On is default + if '-octave' in spec: + args.append('-DNLOPT_OCTAVE:Bool=OFF') + if '+cxx' in spec: args.append('-DNLOPT_CXX:BOOL=ON') |