Skip to content
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 file always enables and requires testing when building project. #96

Open
ALPayne18 opened this issue Aug 15, 2024 · 0 comments
Open

Comments

@ALPayne18
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant