Use CGAL_DATA_DIR only if it is defined

This commit is contained in:
Guillaume Damiand 2021-01-19 15:45:25 +01:00
parent dbdac7aa10
commit a00a539259
1 changed files with 7 additions and 1 deletions

View File

@ -766,7 +766,13 @@ inline std::string get_data_file_path(const char* filename)
{
std::cerr<<"[WARNING] file "<<res<<" does not exist or cannot be read "
<<"(CGAL_DATA_DIR='"
<<(cgal_dir!=nullptr?cgal_dir:CGAL_DATA_DIR)<<"')."<<std::endl;
<<(cgal_dir!=nullptr?cgal_dir:
#ifdef CGAL_DATA_DIR
CGAL_DATA_DIR
#else
""
#endif
)<<"')."<<std::endl;
}
return res;