]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cmake: link compressor plugins against lib the modern way 23852/head
authorKefu Chai <kchai@redhat.com>
Sun, 2 Sep 2018 06:42:54 +0000 (14:42 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 2 Sep 2018 06:43:57 +0000 (14:43 +0800)
commit16e2da3352ffb05b03da122c9996efb74ded0801
tree49d2f0de16058b208df2ab1ab34953296faf8392
parent8748d271307fab70e59447c84166c0b6c5240f63
cmake: link compressor plugins against lib the modern way

* always link against the target library not library paths
* import their include directories by linking against their target
  library, instead of doing so using target_include_directories()
  manually.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/compressor/brotli/CMakeLists.txt
src/compressor/lz4/CMakeLists.txt
src/compressor/snappy/CMakeLists.txt
src/compressor/zlib/CMakeLists.txt
src/compressor/zstd/CMakeLists.txt