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") if (EXISTS "${CMAKE_SOURCE_DIR}/Data/data")
set(CGAL_DATA_DIR "${CMAKE_SOURCE_DIR}/Data/data") set(CGAL_DATA_DIR "${CMAKE_SOURCE_DIR}/Data/data")
else() else()
message("CMAKE_SOURCE_DIR = ${CMAKE_SOURCE_DIR}")
message(FATAL_ERROR "CGAL_DATA_DIR cannot be deduced, please set the variable CGAL_DATA_DIR") message(FATAL_ERROR "CGAL_DATA_DIR cannot be deduced, please set the variable CGAL_DATA_DIR")
endif() endif()
endif() endif()

View File

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