Skip to content

Commit e3d93c0

Browse files
authored
[NLopt] Upgrade to v2.9.0 (#10208)
1 parent 17a7bac commit e3d93c0

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

N/NLopt/build_tarballs.jl

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,41 @@
11
using BinaryBuilder
22

33
name = "NLopt"
4-
version = v"2.8.0"
4+
version = v"2.9.0"
55

66
# Collection of sources required to build NLopt
77
sources = [
88
GitSource("https://github.com/stevengj/nlopt.git",
9-
"58995c25b4d918759a107bd52a457122343b9c6d"), # v2.8.0
9+
"c500b5044482b17cf0f85de1ca66d036efecf668"), # v2.9.0
1010
]
1111

1212
# Bash recipe for building across all platforms
1313
script = raw"""
1414
cd $WORKSPACE/srcdir/nlopt
15-
mkdir build
16-
cd build
17-
cmake -DCMAKE_INSTALL_PREFIX=$prefix -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TARGET_TOOLCHAIN} -DNLOPT_PYTHON=Off -DNLOPT_OCTAVE=Off -DNLOPT_MATLAB=Off -DNLOPT_GUILE=Off -DNLOPT_SWIG=Off -DNLOPT_LINK_PYTHON=Off ..
18-
make -j${nproc}
19-
make install
15+
cmake -B build \
16+
-DCMAKE_INSTALL_PREFIX=$prefix \
17+
-DCMAKE_TOOLCHAIN_FILE=${CMAKE_TARGET_TOOLCHAIN} \
18+
-DNLOPT_PYTHON=Off \
19+
-DNLOPT_OCTAVE=Off \
20+
-DNLOPT_MATLAB=Off \
21+
-DNLOPT_GUILE=Off \
22+
-DNLOPT_SWIG=Off \
23+
-DNLOPT_LINK_PYTHON=Off
24+
cmake --build build --parallel ${nproc}
25+
cmake --install build
2026
"""
2127

2228
# These are the platforms we will build for by default, unless further
2329
# platforms are passed in on the command line
24-
platforms = expand_cxxstring_abis(supported_platforms(; experimental=true)) # build on all supported platforms
30+
platforms = expand_cxxstring_abis(supported_platforms()) # build on all supported platforms
2531

2632
# The products that we will ensure are always built
2733
products = [
2834
LibraryProduct("libnlopt", :libnlopt),
2935
]
3036

3137
# Dependencies that must be installed before this package can be built
32-
dependencies = [
38+
dependencies = Dependency[
3339
]
3440

3541
# Build the tarballs, and possibly a `build.jl` as well.

0 commit comments

Comments
 (0)