Cmake picks wrong compiler #194
Unanswered
LubomirBogdanov
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
I've been following this guide:
https://www.bluerange.io/docs/fruitymesh/Quick-Start.html
and I cannot get through the following problem. When I try to build a project I execute the following commands:
cmake "../../" -DBUILD_FEATURESETS=ON -DGCC_PATH="/home/user/fruity_mesh/gcc-arm-none-eabi-4_9-2015q3" -G "Unix Makefiles"
cmake --build . --target github_dev_nrf52
However the build fails with -Werror. So I edit the CMakeLists by commenting out:
# target_compile_options(${FEATURE_SET} PRIVATE $<$<COMPILE_LANGUAGE:CXX>:-Werror>)
but then I get the following error:
Notice how Cmake uses the wrong toolchain that I have installed in a separate directory.
Does anyone know how to fix this?
Regards,
L. B.
Beta Was this translation helpful? Give feedback.
All reactions