-
Notifications
You must be signed in to change notification settings - Fork 47
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
Installed libraries instead of newly built ones #322
Comments
I think we should export the env viriable for the test containing first the compilations paths. |
I think I understood the change of behavior. It is because on 16.04, CMake used to set rpath to the correct build folder. On 18.04, it sets runpath. |
The issue actually comes from the linker, i.e. Add option |
Last thought on this. Setting the environment variable from CMake would work when CMake launch the unit tests. It wouldn't work when the unit test are run manually. |
Providing
to my test, I get |
This works for me. Should I make a pull request in this project ? |
This flag should be added only when supported by the linker. I don't know how to get this information... |
On 18.04, for a package with library and unit tests on this library, the unit test will find first the installed version of the library, rather than the one in the build folder. On 16.04, the behavior was different.
I couldn't find anything relevant with a websearch (my keywords may have been wrong). It may be related to this module. Two questions:
The text was updated successfully, but these errors were encountered: