I tried:
git clone https://github.com/baidu/Paddle paddle
cd paddle
mkdir build
cd build
cmake -DWITH_GPU=OFF -DWITH_DOC=OFF
CMake Error: The source directory "/home/mwang/paddle_src/build" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
I can only do cmake in the parent folder and build the package succesfully.