Skip to content

Commit

Permalink
cmake: update BuildSPDK for spdk-18.05
Browse files Browse the repository at this point in the history
in spdk v18.05, libuuid is linked by libspdk_util.a, in which,
it is used by lib/util/uuid.c. and libspdk_vol.a uses the wrapper
function exposed by libspdk_util.a, so update the CMakefile script to
reflect the change.

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit c2026b7)
  • Loading branch information
tchaikov authored and badone committed Apr 26, 2019
1 parent 2f23bf2 commit 8df7aa6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmake/modules/BuildSPDK.cmake
Expand Up @@ -30,10 +30,10 @@ macro(build_spdk)
endforeach()
set_target_properties(spdk::env_dpdk PROPERTIES
INTERFACE_LINK_LIBRARIES "${DPDK_LIBRARIES};rt")
if(LINUX)
set_target_properties(spdk::lvol PROPERTIES
INTERFACE_LINK_LIBRARIES ${UUID_LIBRARIES})
endif()
set_target_properties(spdk::lvol PROPERTIES
INTERFACE_LINK_LIBRARIES spdk::util)
set_target_properties(spdk::util PROPERTIES
INTERFACE_LINK_LIBRARIES ${UUID_LIBRARIES})
set(SPDK_INCLUDE_DIR "${source_dir}/include")
unset(source_dir)
endmacro()

0 comments on commit 8df7aa6

Please sign in to comment.