Closed citystrawman closed 1 month ago
If you read the documentation here it says that you executable should be linked with the target CGAL::Data
using target_link_libraries(target PRIVATE CGAL::Data)
for example or you can set the environment variable CGAL_DATA_DIR
to the data path of a release.
If you read the documentation here it says that you executable should be linked with the target
CGAL::Data
usingtarget_link_libraries(target PRIVATE CGAL::Data)
for example or you can set the environment variableCGAL_DATA_DIR
to the data path of a release.
I also tried set CGAL_DATA_DIR as environment variable by set(ENV CGAL_DATA_DIR "D:\Programs\CGAL-5.6.1-examples\CGAL-5.6.1\data") but it also doesn't work. Should I have to set it in windows system environment variable?
Please use the following template to help us solving your issue.
Issue Details
Describe your issue. Please be specific (compilation error, runtime error, unexpected behavior, wrong results, etc.). I am compiling a code which uses
CGAL::data_file_path("points_3/kitten.xyz")
, when I run the code, I got errors say thatThen I set CGAL_DATA_DIR in CMakeLists.txt:
and when I configure it, I can see that CGAL_DATA_DIR is correctly set:![image](https://github.com/CGAL/cgal/assets/9004748/f41146d9-f3c0-47c6-8142-3f7978ad762d)
But When I run the new generated code, I still got errors:
BTW I also attached CMakeLists.txt FYI. CMakeLists.txt
Source Code
Environment