File tree 1 file changed +29
-0
lines changed
1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,34 @@ RUN yum update -y \
13
13
&& yum install -y flex-2.6.1 git-lfs-3.4.1 \
14
14
&& yum clean all
15
15
16
+ ARG NLOPT_VERSION="v2.10.0"
17
+ RUN mkdir -p $TMP_DIR && cd $TMP_DIR \
18
+ && git clone \
19
+ -b $NLOPT_VERSION \
20
+ --depth 1 \
21
+ https://github.com/stevengj/nlopt.git \
22
+ && cd nlopt \
23
+ && mkdir build \
24
+ && cd build \
25
+ && cmake \
26
+ -GNinja \
27
+ -DCMAKE_BUILD_TYPE=Release \
28
+ -DBUILD_SHARED_LIBS=OFF \
29
+ -DCMAKE_C_FLAGS="-fPIC -fvisibility=hidden" \
30
+ -DCMAKE_CXX_FLAGS="-fPIC -fvisibility=hidden" \
31
+ -DCMAKE_INSTALL_PREFIX="$BUILD_DIR" \
32
+ -DNLOPT_FORTRAN=OFF \
33
+ -DNLOPT_GUILE=OFF \
34
+ -DNLOPT_JAVA=OFF \
35
+ -DNLOPT_MATLAB=OFF \
36
+ -DNLOPT_OCTAVE=OFF \
37
+ -DNLOPT_PYTHON=OFF \
38
+ -DNLOPT_SWIG=OFF \
39
+ .. \
40
+ && ninja \
41
+ && ninja install \
42
+ && rm -rf $TMP_DIR
43
+
16
44
ARG CEREAL_VERSION="v1.3.2"
17
45
RUN mkdir -p $TMP_DIR && cd $TMP_DIR \
18
46
&& git clone \
@@ -293,6 +321,7 @@ RUN mkdir -p $TMP_DIR && cd $TMP_DIR \
293
321
-DCMAKE_INSTALL_PREFIX=$BUILD_DIR \
294
322
-DPAGMO_BUILD_STATIC_LIBRARY=ON \
295
323
-DPAGMO_BUILD_TESTS=OFF \
324
+ -DPAGMO_WITH_NLOPT=ON \
296
325
.. \
297
326
&& ninja \
298
327
&& ninja install \
You can’t perform that action at this time.
0 commit comments