-
-
Notifications
You must be signed in to change notification settings - Fork 178
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
Cmake: Remove custom Find<Package>.cmake
modules
#1585
Conversation
Thanks for opening this pull request! Please check out our contributing guidelines and check for the automated tests. |
Signed-off-by: Cristian Le <[email protected]>
Signed-off-by: Cristian Le <[email protected]>
419e5e6
to
836ecb2
Compare
In principal, this is great, but it's not passing CI builds, e.g. on Ubuntu:
|
The issue is that the openchemistry libraries are using spglib <2.10 where the proper packaging is introduced. These patches are already introduced in Fedora to properly support upstream packaging, and the tests there pass: https://copr.fedorainfracloud.org/coprs/lecris/dependencies/build/6950789/ |
Here are the build results |
Okay, I've updated |
Here are the build results |
Here are the build results |
Great - looks like the work you did on more recent spglib solved the Windows build issue. Thanks! |
Congrats on merging your first pull request! 🎉 Thanks for making Avogadro better for everyone! |
Here are the build results |
Spglib and Eigen3 both provide native
<Package>Config.cmake
files. These should be used instead, particularly because the names do not match and the manual finds do not include dependencies, defines and other options shipped by<Package>Config.cmake
.Alternatively I also recommend for required packages to change
find_package
withFetchContent(FIND_PACKAGE_ARGS)
, and if some backwards compatibility is required, design theFind<Package>.cmake
as follows: https://gitlab.com/octopus-code/octopus/-/blob/main/cmake/FindMETIS.cmake?ref_type=heads, where it tries in order:find_package(CONFIG) -> pkg-config -> manual import