Преглед на файлове

Avoid copying min-dgels when building inside source

Samuel Thibault преди 7 години
родител
ревизия
e1651cb469
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      configure.ac

+ 3 - 1
configure.ac

@@ -2960,7 +2960,9 @@ if test x$enable_mlr = xyes -a "$starpu_windows" != "yes" ; then
 			else
 				AC_MSG_RESULT(no)
 				AC_MSG_CHECKING(min-dgels source)
-				cp -r $srcdir/min-dgels $PWD/
+				if test ! -d $PWD/min-dgels; then
+					cp -r $srcdir/min-dgels $PWD/
+				fi
 				AC_MSG_RESULT(yes)
 				DGELS_LIBS="-Wl,--start-group $STARPU_BUILD_DIR/min-dgels/build/*.a -Wl,--end-group"
 				AC_DEFINE(STARPU_MLR_MODEL, [1], [use user defined library])