Setting up a Development Work Area |
Владелец:
cliff |
Последние исправления:
16 июля 2010, 20:18 |
SET(MAKE_ONLY quality) SET(CMAKE_BUILD_TYPE release) SET(USE_STATIC_CPP_RUNTIME yes) SET(MAKE_CHECK yes) SET(NO_LIBBIND yes) SET(NOSTRIP yes) SET(NO_WERROR yes)
cd trunk mkdir build cd build export MAKE_CHECK=yes cmake -Drelease= ../arcadia make
Note: you can force a specific compiler using:
CC=gcc44 CXX=g++44 cmake -Drelease= ../arcadia
While this is supposedly deprecated it is the only way I have found to change the compilers once cached.
Note from AKhropov on July 15, 2010: That's the way to do this, yes. The other one in to SET(MY_GCC gcc44), SET(MY_GPP g++44) in local.cmake but according to vlysenkov@ it doesn't work properly in CMake 2.6 when CMake is rerun after CMakeLists.txt changes.
Note from VLysenkov on July 16, 2010: The proper way is to use MY_GCC and MY_GPP in local[.compiler].cmake (it is the way that our autobuild uses)... [It is true that] using SET(MY_GCC gcc44) and SET(MY_GPP g++44) in the local.cmake has no effect after cmake is run the first time. So you have no way to change compiler for an existing build tree.
Yandex uses CMake as the build infrastructure. CMake is a platform independent meta-make that generates make files that are subsequently used by make to actually build the source code. After the initial setup using cmake, cmake will be called transparently when needed whenever make is used to build.
cd work/trunk/build make
You can update your entire source tree using, or any sub directory using svn update
cd work/trunk svn update
To build a stable version (you will need to check-out the latest stable version, assuming this is stable-16-25)
cd work svn co https://arcadia.yandex.ru/arc/tags/base/stable-16-25