On 64-bit systems, the system installations of boost, cgal are under lib64/. The behaviour for a ThirdParty build is mostly lib/ but this can also be changing. Boost 1_62_0 and older build into 'lib/'. CGAL-4.9 builds into 'lib64/', older versions into 'lib/'. Future-proof things by using lib$WM_COMPILER_LIB_ARCH for boost and cgal build rules, and forcing these as build targets in the ThirdParty makeCGAL as well. -- STYLE: check for boost/version.hpp, CGAL/version.h instead their directories
20 lines
497 B
Bash
Executable File
20 lines
497 B
Bash
Executable File
#!/bin/sh
|
|
cd ${0%/*} || exit 1 # Run from this directory
|
|
set -x
|
|
|
|
unset COMPILE_FLAGS LINK_FLAGS
|
|
|
|
if [ -f "$CGAL_ARCH_PATH/include/CGAL/version.h" ] || \
|
|
[ "${CGAL_ARCH_PATH##*-}" = system -a -f /usr/include/CGAL/version.h ]
|
|
then
|
|
wmake PolyhedronReader
|
|
export COMPILE_FLAGS='-IPolyhedronReader'
|
|
export LINK_FLAGS='${CGAL_LIBS} -lPolyhedronReader'
|
|
else
|
|
export COMPILE_FLAGS="-DNO_CGAL"
|
|
fi
|
|
|
|
wmake
|
|
|
|
# ----------------------------------------------------------------- end-of-file
|