adds flag to turn off NLOPT_OCTAVE in CMAKE when -octave (#21997)
This commit is contained in:
parent
5492e549a5
commit
f957f1936c
1 changed files with 4 additions and 0 deletions
|
@ -55,6 +55,10 @@ def cmake_args(self):
|
||||||
if '-shared' in spec:
|
if '-shared' in spec:
|
||||||
args.append('-DBUILD_SHARED_LIBS:Bool=OFF')
|
args.append('-DBUILD_SHARED_LIBS:Bool=OFF')
|
||||||
|
|
||||||
|
# On is default
|
||||||
|
if '-octave' in spec:
|
||||||
|
args.append('-DNLOPT_OCTAVE:Bool=OFF')
|
||||||
|
|
||||||
if '+cxx' in spec:
|
if '+cxx' in spec:
|
||||||
args.append('-DNLOPT_CXX:BOOL=ON')
|
args.append('-DNLOPT_CXX:BOOL=ON')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue