bamtools: cmake in the most recent version give errors

I am not an expert in cmake, but here is the error message:

zhouke@europa[~/src/bamtools]$ mkdir build zhouke@europa[~/src/bamtools]$ cd build zhouke@europa[~/src/bamtools/build]$ cmake … CMake Error at CMakeLists.txt:20 (message):

BamTools requires an out of source build.
$ mkdir build 
$ cd build
$ cmake ..
$ make 

(or the Windows equivalent)

Call Stack (most recent call first): CMakeLists.txt:24 (ensure_out_of_source_build)

– Configuring incomplete, errors occurred!

About this issue

  • Original URL
  • State: closed
  • Created 11 years ago
  • Comments: 24 (6 by maintainers)

Most upvoted comments

For those having this issue, i tried the solution above placing build folder at the same level as the bamtools clone but kept getting the same error UNTIL I also deleted CMakeCache.txt from the bamtools clone folder. After deleting CMakeCache.txt i could build and install bamtools.