X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=README_CMake;h=18a1c6b5c8cf9209c542e95a7cc7ee73ba44694d;hb=9cc245f676dda8ab40df08c797472153041f1f03;hp=62b738b1f199cf7e7dfe1e5a536c94dbfec1ec83;hpb=8b0f7d962dd96f8d910a89b43d188b3c8cc478c1;p=u%2Fmrichter%2FAliRoot.git diff --git a/README_CMake b/README_CMake index 62b738b1f19..18a1c6b5c8c 100644 --- a/README_CMake +++ b/README_CMake @@ -6,7 +6,9 @@ Steps to Build AliRoot with CMake : 1. Check out Aliroot source into a folder (usually specified by the environment variable ALICE) cd $ALICE - svn co http://alisoft.cern.ch/AliRoot/trunk AliRoot + svn co https://alisoft.cern.ch/AliRoot/trunk AliRoot + +Note: Please use https:// if you want to be able to commit changes to the SVN repository. 2. Set the environment variable ALICE_ROOT to point to the source you have checked out @@ -29,8 +31,30 @@ It you do not specify it, "make install" will put lib, bin and include in ALICE_ cmake $ALICE_ROOT + Note: Some files CMakeLists.txt will be created in the source tree, so you need write access there. This is a temporary situation that will change soon. + + 6a.Run + cmake -DCMAKE_BUILD_TYPE=DEBUG $ALICE_ROOT + to compile AliRoot in Debug configuration (-g compiler flags). + + To change the configuration later on you can either + edit cache variable CMAKE_BUILD_TYPE using 'ccmake' command ('None' value for default configuration), + + or setup default configuration (-O -g flags are setting up) by running + cmake $ALICE_ROOT + + 6b. To compile AliRoot in Release mode (-03 flag) run + cmake -DCMAKE_BUILD_TYPE=Release $ALICE_ROOT + + 6c. Command + cmake -DCMAKE_BUILD_TYPE=RelRelWithDebInfo $ALICE_ROOT + allows to compile AliRoot with -g -O2 options. + +Please note! The default values for these flags change with different compilers. +If CMake does not know your compiler, the contents will be empty. + 7. Build and install AliRoot. Note that the parralel build is fully operational with CMake.