-
Notifications
You must be signed in to change notification settings - Fork 743
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
Make library importable by CMake using find_package #708
Conversation
CMake war reporting: 'Target "GSL" INTERFACE_SOURCES property contains path: "..." which is prefixed in the source directory'. CMake was confused because the $<BUILD_INTERFACE: ...> had linebreaks in it. Putting everything in one line fixed the issue.
This fixes an issue where CMake complains about INTERFACE_SOURCES containing a path which is prefixed in source directory on windows.
Doesn't this conflict with GSLConfig.cmake from the GSL scientific library project that this project's name conflicts with? Is there any way to prevent one from overwriting the other on the same system? |
This is to avoid conflicts with GNU Scientific Library which also has an exported target named GSL.
Yes, there is a conflict with GNU Scientific Library.
I think this might be a good compromise. |
The namespace is great, but it looks like the filename itself was still |
Ah, yes, only changed the install line. Fixed that. (Microsoft.GSLConfig.cmake) |
Should be ready now |
Has this PR gone stale? It is a great initiative to make GSL available as an imported target. This seems to be the standard approach now. |
Please land this fix |
Hey there, I wound up implementing this myself recently for a library I wanted to use the GSL with. I've created a fork here:
and the diff looks like this:
It's pretty similar to this change - I'm using my fork in my project right now. I know there's also this PR #784 so I don't want to step on anyone's toes but I would love if support could officially be added. I'd be happy to create a PR with my fork/branch if that would help or try and update this one? Thanks! Tom |
Maintainer's call: Marking as duplicate of PR #784 |
Currently no GSLConfig.cmake file was installed so find_package could not be used with GSL.
Fixed CMakeLists.txt to install GSLConfig.cmake so that find_package can be used.
Fixes #715.