Skip to content
Snippets Groups Projects
Commit 2ae3518b authored by Mark OLESEN's avatar Mark OLESEN
Browse files

COMP: handle multiple include or library directories (#3)

- might have PREFIX/ARCH/include PREFIX/include
parent 1ec3bfee
Branches
Tags v2012
No related merge requests found
...@@ -11,16 +11,19 @@ then ...@@ -11,16 +11,19 @@ then
echo "wmake(petsc) $targetType : $PETSC_ARCH_PATH" echo "wmake(petsc) $targetType : $PETSC_ARCH_PATH"
wmake $targetType wmake $targetType
/bin/cat<<INFO 1>&2 /bin/cat<<INFORMATION 1>&2
==> Before running, verify that PETSc libraries can be found ==> Before running, verify that PETSc libraries can be found
For example,
Enable in the OpenFOAM etc/bashrc, define manually or try with the foamHasLibrary -verbose petscFoam
following (POSIX shell):
Define manually, enable in OpenFOAM etc/bashrc, or try the following [POSIX]:
eval \$(foamEtcFile -sh -config petsc -- -force) eval \$(foamEtcFile -sh -config petsc -- -force)
== ==
INFO INFORMATION
fi fi
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
...@@ -12,11 +12,10 @@ EXE_INC = \ ...@@ -12,11 +12,10 @@ EXE_INC = \
$(PFLAGS) $(PINC) \ $(PFLAGS) $(PINC) \
-Wno-old-style-cast \ -Wno-old-style-cast \
-I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/fvOptions/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude \ -I$(LIB_SRC)/meshTools/lnInclude \
-I${PETSC_INC_DIR} $(foreach dir,$(PETSC_INC_DIR),-I$(dir))
LIB_LIBS = \ LIB_LIBS = \
-lfiniteVolume \ -lfiniteVolume \
-L$(FOAM_EXT_LIBBIN)/$(FOAM_MPI) \ -lmeshTools \
-L${PETSC_LIB_DIR} -lpetsc $(foreach dir,$(PETSC_LIB_DIR),-L$(dir)) -lpetsc
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment