29 May
2021
29 May
'21
6:06 p.m.
Edward Diener wrote:
Thanks, Peter, but how do I tell CMake to use a particular compiler ? In b2 I specify the toolset on the b2 command line. In CMake I specify what ?
There are various ways to control that but the easiest is to set the CC and CXX environment variables (on POSIX platforms.) Again, when on Windows, things are a bit different. There you need to specify the toolset with -T when using the default Visual Studio generator (or select a generator with -G.) https://cmake.org/cmake/help/v3.20/manual/cmake.1.html CMake's philosophy is very different from b2's.