Building with cmake

Currently, I build with:
../.../configure --with-gcc-toolchain=/path/to/gcc/toolchain --enable-optimized
make install

I now wish to use Cmake.

Is there a reference as to the cmake alternatives for these options?

Not sure about --with-gcc-toolchain, but release builds can be done using -DCMAKE_BUILD_TYPE=Release.

Hi Daniel,

From memory, the alternative would be:

cmake -DCMAKE_C_COMPILER=/path/to/c/compiler -DCMAKE_BUILD_TYPE=Release /path/to/llvm/source/tree
make install

CMake detects the C++ compiler if you give it a C compiler. You may want to add -DASSERTS=1 to enable asserts.



I am not doing this for the C or C++ compiler, I am doing it for the
standard libraries. Without it, I get a missing crtbegin.o error.