Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2021-05-29 18:06:38


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.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk