> git clone https://github.com/BVLC/caffe.git
> cd caffe
> mkdir build
> cd build
> cmake ..
then open CMakeCache.txt created in build directory and change this line:
CMAKE_CXX_FLAGS:STRING=
to this:
CMAKE_CXX_FLAGS:STRING=-std=c++11
then you can continue making your files as follow:
> make all
> make install
> make runtest