]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
UB20 natif TITANIA - NO /usr/bin/python => use PYTHONBIN instead - opencv + openturns
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Mon, 19 Jul 2021 14:10:20 +0000 (16:10 +0200)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Mon, 19 Jul 2021 14:10:20 +0000 (16:10 +0200)
products/compil_scripts/opencv.sh

index b5ac5e94689af534627858dbd08bfb12c4cc44b7..237bfc4e6827fea8af51d5914b974e575e9c3a74 100755 (executable)
@@ -14,7 +14,7 @@ if version_ge $VERSION "3."; then
     echo "*** openCV version $VERSION >= 3."
     CMAKE_OPTIONS+=" -DBUILD_NEW_PYTHON_SUPPORT=ON"
     CMAKE_OPTIONS+=" -DBUILD_EXAMPLES:BOOL=ON"
-    CMAKE_OPTIONS+=" -DPYTHON3_EXECUTABLE=${PYTHON_ROOT_DIR}/bin/python"
+    CMAKE_OPTIONS+=" -DPYTHON3_EXECUTABLE=${PYTHONBIN}"
     CMAKE_OPTIONS+=" -DPYTHON3_NUMPY_INCLUDE_DIRS=${NUMPY_INCLUDE_DIR};${NUMPY_INCLUDE_DIR2}"
     CMAKE_OPTIONS+=" -DWITH_IPP:BOOL=OFF"
     CMAKE_OPTIONS+=" -DBUILD_opencv_java:BOOL=OFF"