This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Error in cmake bam-readcount compiling

Hello,

I have installed cmake on my MAC and was trying to compile bam-readcount but ran into an error:

What I did, as sugested in the bam-readcount website, is: - first create a directory - entered it - tried to compile it using cmake: cmake ../bam-readcount/

That's when I ran into this error:

-- The C compiler identification is AppleClang 7.3.0.7030031
-- The CXX compiler identification is AppleClang 7.3.0.7030031
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE  
CMake Error at build-common/cmake/TestHelper.cmake:4 (link_libraries):
  Unknown CMake command "link_libraries".
Call Stack (most recent call first):
  CMakeLists.txt:14 (include)

-- Configuring incomplete, errors occurred!
See also "/Users/myname/Documents/SOFTWARES/bam_readcount/CMakeFiles/CMakeOutput.log".

I'm not sure what to do or if it's a cmake issue. Thank you very much!

bam-readcount cmake

0 answers

No answers yet.

Log in to answer this question.