-
Notifications
You must be signed in to change notification settings - Fork 104
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 relocation / cross compile support is broken #1192
Comments
Could you please send a PR to fix it? |
@bluca Could we update CMake minimum required version to 3.6 or higher? Many distributions have a higher version as 3.6. This version will allow use to use the |
that's quite a big jump from 2.8 - can it be made optional by checking which version of cmake is being used? Then users with old versions won't have support removed |
couldn't there simply be a check for the CMAKE version to use that feature? if it's new enough use it, if not don't |
Do you mean we should fix the issue only for newer CMake versions and otherwise fall back to the current behaviour? |
Yes - the problem in Yocto will be fixed, and we avoid breaking compatibility with CentOS/RHEL |
The current CMake implementation doesn’t support cross compile via Yocto. CMake supports the relocation of its installation by default. The generated CMake build files breaks this feature because they contaminate the CMake targets with absolute paths. The find package modules should provide targets to forward the include directories and libraries to the CMake build targets. The CMake build targets should use these imported targets and the CMake package config should call find package on all required external libraries to provide all needed targets.
The text was updated successfully, but these errors were encountered: