Skip to content

Commit

Permalink
wip cleanup zstd_vendor package
Browse files Browse the repository at this point in the history
Signed-off-by: Karsten Knese <[email protected]>
  • Loading branch information
Karsten1987 committed May 5, 2020
1 parent 04abe30 commit 84f1798
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
7 changes: 3 additions & 4 deletions rosbag2_compression/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,12 @@ add_library(${PROJECT_NAME}_zstd
target_include_directories(${PROJECT_NAME}_zstd
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>
${zstd_vendor_INCLUDE_DIRS})
target_link_libraries(${PROJECT_NAME}_zstd ${zstd_vendor_LIBRARIES})
$<INSTALL_INTERFACE:include>)
ament_target_dependencies(${PROJECT_NAME}_zstd
rcpputils
rcutils
rosbag2_storage)
rosbag2_storage
zstd_vendor)
# Causes the visibility macros to use dllexport rather than dllimport.
# This is appropriate when building the dll but not consuming it.
target_compile_definitions(${PROJECT_NAME}_zstd
Expand Down
8 changes: 4 additions & 4 deletions zstd_vendor/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ macro(build_zstd)

include(ExternalProject)
# The CMakeLists.txt file for zstd is in a subdirectory.
# We need to configure the CMake command to build from there instead.
# We need to configure the CMake command to build from there instead.
ExternalProject_Add(zstd-1.4.4
URL https://github.com/facebook/zstd/archive/v1.4.4.zip
URL_MD5 3a5c3a535280b7f4dfdbd739fcc7173f
Expand All @@ -43,13 +43,13 @@ macro(build_zstd)
DESTINATION .)
endmacro()

if (NOT zstd_FOUND OR "${zstd_VERSION}" VERSION_LESS 1.4.4)
if(NOT zstd_FOUND OR "${zstd_VERSION}" VERSION_LESS 1.4.4)
build_zstd()
else()
message(STATUS "Found Zstd, skipping build.")
endif()

ament_export_libraries(zstd)
ament_export_include_directories(include)
#ament_export_include_directories(include)

ament_package()
ament_package(CONFIG_EXTRAS zstd_vendor-extras.cmake)
1 change: 1 addition & 0 deletions zstd_vendor/zstd_vendor-extras.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
list(APPEND zstd_vendor_TARGETS zstd::zstd)

0 comments on commit 84f1798

Please sign in to comment.