Explorar o código

When starpu_smpirun is executed from source, take the xslt from source too

Samuel Thibault %!s(int64=10) %!d(string=hai) anos
pai
achega
849348c867
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      tools/starpu_smpirun.in

+ 5 - 0
tools/starpu_smpirun.in

@@ -20,6 +20,11 @@
 prefix=@prefix@
 prefix=@prefix@
 SMPIRUN=@smpirun_path@
 SMPIRUN=@smpirun_path@
 STARPU_DATADIR=@datarootdir@
 STARPU_DATADIR=@datarootdir@
+SOURCE_DATADIR=@abs_srcdir@
+BUILDDIR=@abs_builddir@
+
+# When executed from source, take xslt from source
+[ "$(realpath $0)" = $BUILDDIR/starpu_smpirun ] && STARPU_DATADIR=$SOURCE_DATADIR
 
 
 MPI_PLATFORM=""
 MPI_PLATFORM=""
 MPI_HOSTFILE=""
 MPI_HOSTFILE=""