Skip to content

Commit faf3b82

Browse files
committed
- dont try to build language bindings for nlopt
1 parent 836e313 commit faf3b82

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/CMakeLists.txt

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ if (BUILD_qcustomplot)
470470
set (ARCHIVE_DEPENDENCIES ${ARCHIVE_DEPENDENCIES} qcustomplot)
471471
endif (BUILD_qcustomplot)
472472

473-
option(BUILD_nlopt "Build the nlopt library" OFF)
473+
option(BUILD_nlopt "Build the nlopt library" ON)
474474
if (BUILD_nlopt)
475475
message(STATUS "adding project: nlopt")
476476
ExternalProject_Add(nlopt
@@ -479,8 +479,15 @@ if (BUILD_nlopt)
479479

480480
CONFIGURE_COMMAND ${CMAKE_COMMAND}
481481
${COMMON_CMAKE_OPTIONS}
482-
-DBUILD_SHARED_LIBS=OFF
483-
${CMAKE_CURRENT_SOURCE_DIR}/nlopt
482+
-DBUILD_SHARED_LIBS=OFF
483+
-DNLOPT_PYTHON=OFF
484+
-DNLOPT_OCTAVE=OFF
485+
-DNLOPT_MATLAB=OFF
486+
-DNLOPT_GUILE=OFF
487+
-DNLOPT_JAVA=OFF
488+
-DNLOPT_SWIG=OFF
489+
-DNLOPT_TESTS=OFF
490+
${CMAKE_CURRENT_SOURCE_DIR}/nlopt
484491

485492
BUILD_COMMAND ${CMAKE_MAKE_PROGRAM} ${BUILD_OPTIONS}
486493
INSTALL_COMMAND ${CMAKE_MAKE_PROGRAM} install

0 commit comments

Comments
 (0)