libmodbuspp icon indicating copy to clipboard operation
libmodbuspp copied to clipboard

Cross compilation error

Open Neeeflix opened this issue 4 years ago • 0 comments

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?

Neeeflix avatar Dec 02 '21 13:12 Neeeflix