Salome HOME
spns #30362: petsc 3.17
[tools/sat_salome.git] / products / nlopt.pyconf
index 336664ac8823e2c052791cd13c56068b4e7fe0ca..f242c7637e3ac962f0732f69392fee1d76c20fa6 100644 (file)
@@ -8,7 +8,7 @@ default :
     {
        env_script : $name + ".py"
     }
-    depend : ['Python']
+    depend : ['Python', 'numpy'] # numpy mandatory otherwise no python API is generated
     build_depend : ["cmake", "swig"]
     patches : []
     source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name
@@ -23,10 +23,20 @@ default :
 
 default_win:
 {
-   depend : ['Python']
    properties :
    {
      incremental : "yes"
      single_install_dir : "yes"
    }
 }
+
+version_2_5_0:
+{
+    build_source : "cmake"
+    cmake_options : "-DBUILD_SHARED_LIBS:BOOL=ON -DNLOPT_MATLAB:BOOL=OFF -DNLOPT_OCTAVE:BOOL=OFF -DNLOPT_GUILE:BOOL=OFF -DSWIG_EXECUTABLE=${SWIG_ROOT_DIR}/bin/swig -DCMAKE_INSTALL_LIBDIR:STRING=lib"
+}
+
+version_2_5_0_win:
+{
+    build_source : "script"
+}