genome / bam-readcount

Count bases in BAM/CRAM files
MIT License
298 stars 95 forks source link

`make install` ignores CMAKE_INSTALL_PREFIX #21

Closed sjackman closed 9 years ago

sjackman commented 9 years ago

It tries to install to /usr/bin even though I've set CMAKE_INSTALL_PREFIX.

==> cmake .. -DCMAKE_C_FLAGS_RELEASE= -DCMAKE_CXX_FLAGS_RELEASE= -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/bam-readcount/0.7.4 -DCMAKE_BUILD_TYPE=Release -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_VERBOSE_MAKEFILE=ON -Wno-dev
…
==> make install
…
/usr/local/Cellar/cmake/3.2.2/bin/cmake -P cmake_install.cmake
-- Install configuration: "Release"
-- Installing: /usr/bin/bam-readcount
CMake Error at build/src/exe/bam-readcount/cmake_install.cmake:31 (file):
  file INSTALL cannot copy file
  "/tmp/bam-readcount20150612-7802-1a5e9cy/bam-readcount-0.7.4/build/bin/bam-readcount"
  to "/usr/bin/bam-readcount".
ernfrid commented 9 years ago

Last commit should fix this.

sjackman commented 9 years ago

Nice. Thanks.