Skip to content

Cross compilation error #20

Description

@Neeeflix

Hi,
currently, I am trying to use this library in a project on the Rpi. If I want to cross-compile my project, an error occurs with CMake. It says that certain files in "/usr/" are not present. If I change
if(NOT EXISTS "${file}" )
to
if(NOT EXISTS "${SYSROOT_PATH}/${file}" )
in line 63 in the generated modbuspp.cmake file, everything works fine. Would it be possible to change the CMakeLists.txt in a way that this is defined by default?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions