add missing export

This commit is contained in:
Sébastien Loriot 2021-02-04 19:45:23 +01:00
parent 6e06ef17c6
commit fab5d071d8
2 changed files with 3 additions and 2 deletions

View File

@ -49,6 +49,7 @@ if (NOT CGAL_DATA_DIR)
if (EXISTS "${CMAKE_SOURCE_DIR}/Data/data")
set(CGAL_DATA_DIR "${CMAKE_SOURCE_DIR}/Data/data")
else()
message("CMAKE_SOURCE_DIR = ${CMAKE_SOURCE_DIR}")
message(FATAL_ERROR "CGAL_DATA_DIR cannot be deduced, please set the variable CGAL_DATA_DIR")
endif()
endif()

View File

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