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

spheral install *.cmake files into a location that isn't in cmake path #188

Open
yurivict opened this issue Dec 10, 2022 · 2 comments
Open
Labels
good first issue Good for newcomers

Comments

@yurivict
Copy link

They are installed into PREFIX:

Spheral/lib/cmake/spheral-targets-%%CMAKE_BUILD_TYPE%%.cmake
Spheral/lib/cmake/spheral-targets.cmake

They should be moved under lib/cmake.

@mdavis36
Copy link
Collaborator

mdavis36 commented Dec 12, 2022

Assuming you are using CMake find_package you can probably use the options NO_DEFAULT_PATH PATHS ${spheral_DIR}/Spheral/lib/cmake/ to ensure CMake can find the target files. Our exported CMake targets are most likely incorrectly configured and need more development / testing, so I can't promise they will work as expected.

@mdavis36 mdavis36 added the good first issue Good for newcomers label Apr 20, 2023
@ldowen
Copy link
Collaborator

ldowen commented Oct 10, 2023

This should be fixed with #238 and include a config file as well. Using find_package should work now with something like

find_package(Spheral_CXX NO_DEFAULT_PATH PATHS /path_to_spheral_installationl/lib/cmake)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants