CMAKE_OPTIONS=$CMAKE_OPTIONS" -DCMAKE_INSTALL_PREFIX:STRING=${PRODUCT_INSTALL}"
CMAKE_OPTIONS=$CMAKE_OPTIONS" -DCMAKE_BUILD_TYPE:STRING=Release"
CMAKE_OPTIONS=$CMAKE_OPTIONS" -DPYTHON_EXECUTABLE=${PYTHON_ROOT_DIR}/bin/python"
+CMAKE_OPTIONS=$CMAKE_OPTIONS" -DSWIG_EXECUTABLE=${SWIG_ROOT_DIR}/bin/swig"
echo
echo "*** cmake" $CMAKE_OPTIONS
version_1_16 :
{
- patches : ['openturns-1.16.0001.patch']
+ patches : ['openturns-1.16.0001.patch', 'openturns_nlopt.patch']
}
--- /dev/null
+--- new_openturns/CMakeLists.txt 2021-04-08 17:38:10.804000000 +0200
++++ openturns/CMakeLists.txt 2021-04-08 18:08:15.428000000 +0200
+@@ -268,7 +268,7 @@
+ endif ()
+
+ if (USE_NLOPT)
+-# find_package (NLopt CONFIG QUIET)
++ find_package (NLopt CONFIG QUIET)
+ if (NLopt_FOUND)
+ message(STATUS "Found NLopt: ${NLopt_DIR}")
+ else ()