-
Unix (Makefiles)
To control which compiler is chosen, set the
CC
andCXX
environment variables to name the desired C and C++ compilers. (This is optional, but if you have different versions of the compilers, it gives better control.)mkdir bld cd bld cmake .. make
-
Windows (Visual Studio, from the command line)
mkdir bld cd bld cmake .. devenv mysql.sln /build relwithdebinfo
To create a file containing a log of the compilation, modify the last command as follows:
devenv mysql.sln /build relwithdebinfo /out logfile.txt