From 94b49496588a352e40ad594419f18a74cabdcef9 Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Wed, 3 Feb 2021 15:17:47 -0500 Subject: [PATCH] cmake: remove unnecessary target_include_directories() for spawn targets that depend on spawn via target_link_libraries() automatically pull in their compile options and include directories Signed-off-by: Casey Bodley --- src/test/cls_fifo/CMakeLists.txt | 4 ---- src/tools/CMakeLists.txt | 2 -- 2 files changed, 6 deletions(-) diff --git a/src/test/cls_fifo/CMakeLists.txt b/src/test/cls_fifo/CMakeLists.txt index c71ed790f94db..3abf7634a2fe7 100644 --- a/src/test/cls_fifo/CMakeLists.txt +++ b/src/test/cls_fifo/CMakeLists.txt @@ -1,8 +1,6 @@ add_executable(ceph_test_cls_fifo test_cls_fifo.cc ) -target_include_directories(ceph_test_cls_fifo PRIVATE - $) target_link_libraries(ceph_test_cls_fifo neorados_cls_fifo libneorados @@ -21,8 +19,6 @@ install(TARGETS add_executable(ceph_bench_cls_fifo bench_cls_fifo.cc ) -target_include_directories(ceph_bench_cls_fifo PRIVATE - $) target_link_libraries(ceph_bench_cls_fifo neorados_cls_fifo libneorados diff --git a/src/tools/CMakeLists.txt b/src/tools/CMakeLists.txt index fb079b6a80aa8..1a92898c571e3 100644 --- a/src/tools/CMakeLists.txt +++ b/src/tools/CMakeLists.txt @@ -20,8 +20,6 @@ if(NOT WIN32) set(neorados_srcs neorados.cc) add_executable(neorados ${neorados_srcs}) - target_include_directories(neorados PRIVATE - $) target_link_libraries(neorados libneorados spawn ${CMAKE_DL_LIBS}) #install(TARGETS neorados DESTINATION bin) endif() -- 2.39.5