From 1f4feafbe27d49a8285731aa59ce3d6772f1966c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Tue, 27 Jul 2021 21:09:45 +0200 Subject: [PATCH] fix path --- Scripts/developer_scripts/create_cgal_test | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Scripts/developer_scripts/create_cgal_test b/Scripts/developer_scripts/create_cgal_test index 54dfa8fcc42..635051c3b92 100755 --- a/Scripts/developer_scripts/create_cgal_test +++ b/Scripts/developer_scripts/create_cgal_test @@ -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