eclipse-uprotocol / eclipse-uprotocol/up-cpp

CMake file prevents cross compilation

Open
#291 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
29
Forks
33
PR merge metrics
No merged PRs in 30d

Description

The CMakeLists.txt file always enables tests when building the project. This requires dependency on gtest and the the build and run of the tests when building with Conan.

The problem is when you need to cross compile the project (for example for armv8), the tests can be compiled successfully but cannot be run on the build environment (i.e x86_64) since the tests are compiled for the host (i.e. armv8).

An option should be added to disable testing. Preferably this would disable both building and running the test code when cross compiling.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.