Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First try at detecting CGAL more robustly. #13669

Merged
merged 1 commit into from May 4, 2022

Conversation

luca-heltai
Copy link
Member

First step towards #13668.

This is still not perfect. I'm waiting for feedback from @tamiko.

However, it should now work on our CI testers, and it works on all machines I have. I'm not sure if boost libraries are included correctly, and there may be issues with some of them, but so far this is ok, since we are not yet using anything fancy from CGAL that requires boost stuff we don't already include.

Merging this makes sure that at least we check if the compilation of the library with CGAL support succeeds.

@luca-heltai
Copy link
Member Author

This seems to have worked, at least for the tester.

image

IF(CGAL_FOUND)
GET_TARGET_PROPERTY(CGAL_LIBRARIES CGAL::CGAL INTERFACE_LINK_LIBRARIES)
# Make sure we dont' pass Boost::Boost over to deal.II.
LIST(FILTER CGAL_LIBRARIES EXCLUDE REGEX "::")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might not work with all configurations since I think this will also filter out Eigen3. I think GMP and MPFR are okay - those are not using CMake namespaces on my machine.

Copy link
Member

@drwells drwells left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixes linkage with CGAL dependencies so 👍

@tamiko
Copy link
Member

tamiko commented May 4, 2022

Let's get this in as is and let's fix the underlying issue in a separate pull request.

@tamiko
Copy link
Member

tamiko commented May 4, 2022

/rebuild

@drwells drwells merged commit 2b8ac0f into dealii:master May 4, 2022
@luca-heltai luca-heltai added this to Done in CGAL Support May 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants