Fix includedir for opencv_cxxflags

I'm not sure why includedir_new comes from but if needed it's possible
to use:
  --variable=includedir_new --variable=includedir

Signed-off-by: Nicolas Chauvet <kwizart@gmail.com>
Esse commit está contido em:
Nicolas Chauvet
2020-10-20 16:32:51 +02:00
commit e2d7613993
+1 -1
Ver Arquivo
@@ -17,7 +17,7 @@ if test "$PHP_FACEDETECT" != "no"; then
PHP_ADD_INCLUDE($CV_INCLUDE) PHP_ADD_INCLUDE($CV_INCLUDE)
else else
if test -x "$PKG_CONFIG" && $PKG_CONFIG --exists opencv4; then if test -x "$PKG_CONFIG" && $PKG_CONFIG --exists opencv4; then
CV_INCLUDE=`$PKG_CONFIG opencv4 --variable=includedir_new` CV_INCLUDE=`$PKG_CONFIG opencv4 --variable=includedir`
CV_LIBRARY=`$PKG_CONFIG opencv4 --libs` CV_LIBRARY=`$PKG_CONFIG opencv4 --libs`
CV_VERSION=`$PKG_CONFIG opencv4 --modversion` CV_VERSION=`$PKG_CONFIG opencv4 --modversion`
if $PKG_CONFIG opencv4 --atleast-version=3.0.0 ; then if $PKG_CONFIG opencv4 --atleast-version=3.0.0 ; then