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

how to set CMAKE_CXX_COMPILER ? #334

Open
Layty opened this issue Jan 10, 2024 · 0 comments
Open

how to set CMAKE_CXX_COMPILER ? #334

Layty opened this issue Jan 10, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Layty
Copy link

Layty commented Jan 10, 2024

I have two gcc in path , how can I use the second?

Now I have to fix
mbed-os\tools\cmake\toolchains\GCC_ARM.cmake

set(CMAKE_ASM_COMPILER "arm-none-eabi-gcc")
set(CMAKE_C_COMPILER "arm-none-eabi-gcc")
set(CMAKE_CXX_COMPILER "arm-none-eabi-g++")

to

set(CMAKE_ASM_COMPILER "arm-none-eabi-gcc")

set(CMAKE_C_COMPILER "arm-none-eabi-gcc")

set(CMAKE_CXX_COMPILER "arm-none-eabi-g++")

then use

cmake -D CMAKE_CXX_COMPILER=xxx -D CMAKE_C_COMPILER=xxx ?

@Layty Layty added the bug Something isn't working label Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant