File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 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 \
1313 && yum install -y flex-2.6.1 git-lfs-3.4.1 \
1414 && yum clean all
1515
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+
1644ARG CEREAL_VERSION="v1.3.2"
1745RUN mkdir -p $TMP_DIR && cd $TMP_DIR \
1846 && git clone \
@@ -293,6 +321,7 @@ RUN mkdir -p $TMP_DIR && cd $TMP_DIR \
293321 -DCMAKE_INSTALL_PREFIX=$BUILD_DIR \
294322 -DPAGMO_BUILD_STATIC_LIBRARY=ON \
295323 -DPAGMO_BUILD_TESTS=OFF \
324+ -DPAGMO_WITH_NLOPT=ON \
296325 .. \
297326 && ninja \
298327 && ninja install \
You can’t perform that action at this time.
0 commit comments