On my Windows system, I have both gcc and Visual C++.
By default, cmake selects Visual C++.
How can I force it to use gcc?
How can I specify the compiler path?
In the CMakeLists.txt file I tried with:
SET(CMAKE_C_COMPILER gcc)
SET(CMAKE_CXX_COMPILER g++)
with no result.
Thank’s.
You can explicitly specify the generator:
If gcc is in your path CMake will pick it automatically.