浏览代码

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])