make the call to readlink earlier to prevent usage of incorrect CGAL_DIR

in case CGAL-I is changed locally by another testsuite
This commit is contained in:
Sébastien Loriot 2015-11-23 23:56:28 +01:00
parent 4ae7b72bd7
commit df8de0cb40
1 changed files with 2 additions and 2 deletions

View File

@ -377,7 +377,7 @@ build_platforms_list()
setup_dirs()
{
# dir for the actual release
CGAL_DIR=${CGAL_ROOT}/CGAL-I
CGAL_DIR=`readlink "${CGAL_ROOT}/CGAL-I"`
CGAL_TEST_DIR=${CGAL_DIR}/test
@ -391,7 +391,7 @@ setup_dirs()
log "${ACTUAL_LOGFILE}" "Creating ${CGAL_DIR}/cmake/platforms"
fi
CGAL_RELEASE_DIR=`readlink "${CGAL_DIR}"`
CGAL_RELEASE_DIR="${CGAL_DIR}"
CGAL_RELEASE_ID=`basename "${CGAL_RELEASE_DIR}"`