]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cmake: enable CMP0046
authorKefu Chai <kchai@redhat.com>
Thu, 26 Apr 2018 08:44:07 +0000 (16:44 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 26 Apr 2018 08:44:09 +0000 (16:44 +0800)
commit4aea3bed7f7dc587b19700d516ece68b516f07f3
treeedb09bcbd28b28b26a454fae4b5550d20a14b090
parent8e31e6ded4e42c00342449c9fda30116771dc779
cmake: enable CMP0046

so cmake will error on "non-existent dependency in add_dependencies", we
add dependency on CONFIGURE_FILE() output, which is wrong, as its output
is not a target, and is generated when cmake runs. so remove them from
dependencies.

regarding to ceph_ver.h, its path is also wrong. it is created under
${CMAKE_BINARY_DIR}/src/include. so this is another reason to remove it.

Signed-off-by: Kefu Chai <kchai@redhat.com>
15 files changed:
CMakeLists.txt
cmake/modules/AddCephTest.cmake
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
src/crypto/isa-l/CMakeLists.txt
src/erasure-code/CMakeLists.txt
src/erasure-code/isa/CMakeLists.txt
src/erasure-code/jerasure/CMakeLists.txt
src/erasure-code/lrc/CMakeLists.txt
src/erasure-code/shec/CMakeLists.txt
src/test/CMakeLists.txt
src/test/erasure-code/CMakeLists.txt