You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yuri Voinov edited this page Nov 11, 2024
·
5 revisions
Examples:
# 32 bit (GCC, Clang) or multilib
mkdir build
cd build
CXXFLAGS="-m32" cmake -G "Unix Makefiles" -DCMAKE_INSTALL_LIBDIR=/usr/local/lib ..
make
make install
# 64 bit (GCC, Clang)
mkdir build
cd build
CXXFLAGS="-m64" cmake -G "Unix Makefiles" -DCMAKE_INSTALL_LIBDIR=/usr/local/lib/64 ..
make
make install
To build with another or specific compiler, define the environment variable СХХ before cmake. Release builds is enabled by default.
To build package source, define ENABLE_TOPDIR variable (disable by default for binary packages), for example:
mkdir build
cd build
CXXFLAGS="-m64" cmake -G "Unix Makefiles" -DCMAKE_INSTALL_LIBDIR=/usr/local/lib/64 -DENABLE_TOPDIR=ON ..
make