-
Notifications
You must be signed in to change notification settings - Fork 341
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
Could no set path of compiler #251
Comments
Thank you for reporting the issue. |
As i understand by using Reference: https://cmake.org/cmake/help/latest/command/find_program.html |
What exactly is the problem with this for you ? In the order of evaluation, |
When i use the cmake module without |
Why not remove the arm-none-eabi-gcc installation from your path ? If it is installed I suppose rule 3 will take precedence and
This answer is voluntarily quite abrupt but I need to understand your use case as everybody has not the same use case. I don't want to be rude :) |
I read through this quickly but maybe I can add something to the discussion as well. I added this feature so the build system can find the toolchain binaries in the system path, which is really convenient for setting up an environment only once. Hardcoding the toolchain path in the If this is a needed feature, an option would be to provide the CMake option I would set the default option to OFF because I would guess that most users add the path to the binaries to the path temporarily or permanently for convenience reasons. What do you think? |
This commits adds the support to skip the default CMake paths when finding the cross-compile toolchain binaries. This was suggested in ObKo#251 . Documentation will follow in separate commit
@zisi Please try Notice the As you are the only one to reproduce the issue we will need your support before doing any changes. |
Hey! I got
|
|
The same error. |
Sorry. This one should work : Please let me know for a better understandig of the problem even if |
Neither now it works. The problem is, when a system has 2 toolchains, a project one in |
Strange. Reading https://cmake.org/cmake/help/latest/command/find_program.html In your case I think it's rule 5 that finds the program. |
Describe the bug
I set the compiler by using:
but the stm32-cmake uses the usr path to find compiler. Finally i change the stm32_gcc.cmake
in order do not search in default path (usr).
Sources to reproduce
Steps to reproduce
Expected behavior
Screenshots
Environment (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: