Skip to content

Commit

Permalink
Add private dependencies to pkg-config file
Browse files Browse the repository at this point in the history
  • Loading branch information
SoapZA committed Dec 18, 2017
1 parent 94f072e commit 9e09e28
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,11 @@ endif()
find_package( PkgConfig )
pkg_search_module( JSONCPP jsoncpp>=1 )

set( BAMTOOLS_PRIVATE_DEPS "zlib" )

if( JSONCPP_FOUND )
message( "Found system JsonCpp, not using bundled version" )
set( BAMTOOLS_PRIVATE_DEPS "${BAMTOOLS_PRIVATE_DEPS} jsoncpp" )
else()
message( "Did NOT find system JsonCpp, instead using bundled version" )
set( JSONCPP_LDFLAGS jsoncpp )
Expand Down
1 change: 1 addition & 0 deletions src/bamtools.pc.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ Name: BamTools
Description: BamTools is a C++ library for reading and manipulating BAM files
Version: @BamTools_VERSION@

Requires.private: @BAMTOOLS_PRIVATE_DEPS@
Libs: -L${libdir} -lbamtools
Cflags: -I${includedir}

0 comments on commit 9e09e28

Please sign in to comment.