]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: remove unnecessary target_include_directories() for spawn
authorCasey Bodley <cbodley@redhat.com>
Wed, 3 Feb 2021 20:17:47 +0000 (15:17 -0500)
committerCasey Bodley <cbodley@redhat.com>
Wed, 3 Feb 2021 20:23:51 +0000 (15:23 -0500)
targets that depend on spawn via target_link_libraries() automatically
pull in their compile options and include directories

Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/test/cls_fifo/CMakeLists.txt
src/tools/CMakeLists.txt

index c71ed790f94dbef2d641bc1f1a56feb6bc337f1f..3abf7634a2fe7a0718d2bf41594d8cae0f5e1e94 100644 (file)
@@ -1,8 +1,6 @@
 add_executable(ceph_test_cls_fifo
   test_cls_fifo.cc
   )
-target_include_directories(ceph_test_cls_fifo PRIVATE
-  $<TARGET_PROPERTY:spawn,INTERFACE_INCLUDE_DIRECTORIES>)
 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_PROPERTY:spawn,INTERFACE_INCLUDE_DIRECTORIES>)
 target_link_libraries(ceph_bench_cls_fifo
   neorados_cls_fifo
   libneorados
index fb079b6a80aa88165a677b873e5c0971da08a0dd..1a92898c571e321b6b1f8056a81dee45c079e5ad 100644 (file)
@@ -20,8 +20,6 @@ if(NOT WIN32)
   set(neorados_srcs
       neorados.cc)
   add_executable(neorados ${neorados_srcs})
-  target_include_directories(neorados PRIVATE
-    $<TARGET_PROPERTY:spawn,INTERFACE_INCLUDE_DIRECTORIES>)
   target_link_libraries(neorados libneorados spawn ${CMAKE_DL_LIBS})
   #install(TARGETS neorados DESTINATION bin)
 endif()