summaryrefslogtreecommitdiffstats
path: root/src/erasure-code/shec
diff options
context:
space:
mode:
authorKefu Chai <kchai@redhat.com>2018-04-26 10:44:07 +0200
committerKefu Chai <kchai@redhat.com>2018-04-26 10:44:09 +0200
commit4aea3bed7f7dc587b19700d516ece68b516f07f3 (patch)
treeedb09bcbd28b28b26a454fae4b5550d20a14b090 /src/erasure-code/shec
parentMerge pull request #21612 from Songweibin/wip-pglog-cleanup (diff)
downloadceph-4aea3bed7f7dc587b19700d516ece68b516f07f3.tar.xz
ceph-4aea3bed7f7dc587b19700d516ece68b516f07f3.zip
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>
Diffstat (limited to 'src/erasure-code/shec')
-rw-r--r--src/erasure-code/shec/CMakeLists.txt2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/erasure-code/shec/CMakeLists.txt b/src/erasure-code/shec/CMakeLists.txt
index d5f8e15ada4..fd0f3be6efd 100644
--- a/src/erasure-code/shec/CMakeLists.txt
+++ b/src/erasure-code/shec/CMakeLists.txt
@@ -10,7 +10,6 @@ set(shec_utils_srcs
determinant.c)
add_library(shec_utils OBJECT ${shec_utils_srcs})
-add_dependencies(shec_utils ${CMAKE_SOURCE_DIR}/src/ceph_ver.h)
set(ec_shec_objs
$<TARGET_OBJECTS:gf-complete_objs>
@@ -18,7 +17,6 @@ set(ec_shec_objs
$<TARGET_OBJECTS:shec_utils>)
add_library(ec_shec SHARED ${ec_shec_objs})
-add_dependencies(ec_shec ${CMAKE_SOURCE_DIR}/src/ceph_ver.h)
set_target_properties(ec_shec PROPERTIES
INSTALL_RPATH "")
target_link_libraries(ec_shec ${EXTRALIBS})