This commit is contained in:
Sébastien Loriot 2021-07-27 21:09:45 +02:00
parent f153a1ed3e
commit 1f4feafbe2
1 changed files with 4 additions and 5 deletions

View File

@ -97,13 +97,12 @@ cat << EOF
compile_and_run()
{
if [ -z "\${CGAL_DATA_DIR}" ]; then
if [ -d ../../data ]; then
export CGAL_DATA_DIR=../../data
if [ -d \${CGAL_DIR}/data ]; then
export CGAL_DATA_DIR=\${CGAL_DIR}/data
else
if [ -d ../../../Data/data ]; then
export CGAL_DATA_DIR=../../../Data/data
if [ -d \${CGAL_DIR}/Data/data ]; then
export CGAL_DATA_DIR=\${CGAL_DIR}/Data/data
else
echo "ERROR: Cannot run test script, please set the variable CGAL_DATA_DIR"
exit 1