-
Notifications
You must be signed in to change notification settings - Fork 283
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
OCE-libraries-release.cmake 3rd party libs are referenced to local build dir, not install dir #592
Comments
I can confirm this, however not sure where to look to fix. |
The files oce-libraries.cmake and oce-libraries-release.cmake are automatically generated by cmake. Every third pat library for manually specified paths at cmake configuration time will be exported as is. I don't know if it's possible to set a relative path. |
Im not sure if it is helpful for the issue but CMake does have generator-expressions. Instead of
, which to my knowledge contains freetype, it could be
The relative path would need to be composed platform dependent or the libs would need to be copied into a common location instead of e.g. |
On another project I ran into this bug again, so here is my attempt to fix it (OCE-0.18.3...Warmyone:OCE-0.18.3_relative-cmake-install-paths). I don't know the proper way to contribute, so should I just create a request from my fork? As a side effect the changes will make the OCE binaries portable (at least my locale build was) and one could also provide prebuild binaries. There is a related issue (https://gitlab.kitware.com/cmake/cmake/-/issues/17756) at CMake. I also posted my fix there and asked for better alternatives and for further discussion stated the pitfalls I know of. Changes:
|
Hi,
In $OCE_INSTALL/cmake/OCE-libraries-release.cmake 3rd party references are referred to the local build dir.
This can be found in the OCE-0.17-MINGW32 release:
D:/Devel/freetype-2.3.5-1-bin/bin/freetype6.dll
in for instance:
I replaced:
D:/Devel/freetype-2.3.5-1-bin/bin/
with:
${_IMPORT_PREFIX}/Win32/lib/
and all was well.
I recompiled oce-git master this week with msys-ming-w64 on windows 10 and this behavior was still present.
kind regards,
Sander
The text was updated successfully, but these errors were encountered: