$ cmake ./..
-- Looking for R executable
-- Looking for R_HOME
-- R_HOME is /usr/local/lib64/R
-- Looking for R include files
-- Include files should be at /usr/local/lib64/R/include. Checking for R.h
-- Found at /usr/local/lib64/R/include/R.h
-- Exists at /usr/local/lib64/R/lib/libR.so
-- Checking whether we should link against Rlapack library
-- Yes, /usr/local/lib64/R/lib/libRlapack.so exists
-- Checking whether we should link against Rblas library
-- Yes, /usr/local/lib64/R/lib/libRblas.so exists
-- Checking for R package library location to use
-- Will use /usr/local/lib64/R/library
-- Configuring done
-- Generating done
-- Build files have been written to: /xxx/peer/peer-master/build
$ make
Consolidate compiler generated dependencies of target alglib
[ 56%] Built target alglib
Consolidate compiler generated dependencies of target csv_parser
[ 64%] Built target csv_parser
Consolidate compiler generated dependencies of target peerlib
[ 88%] Built target peerlib
[ 92%] Built target peer_swig_compilation
Consolidate compiler generated dependencies of target peer
[ 96%] Linking CXX shared module peer.so
Error copying file "/xxx/peer/peer-master/build/R/peerR_wrap.cxx" to "/xxx/peer/peer-master/build/R/peer/src/peerR_wrap.cpp".
make[2]: *** [R/peer.so] Error 1
make[2]: *** Deleting file `R/peer.so'
make[1]: *** [R/CMakeFiles/peer.dir/all] Error 2
make: *** [all] Error 2