adds flag to turn off NLOPT_OCTAVE in CMAKE when -octave (#21997)

This commit is contained in:
Ryan Viertel 2021-02-26 16:35:09 -07:00 committed by GitHub
parent 5492e549a5
commit f957f1936c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -55,6 +55,10 @@ def cmake_args(self):
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')