diff --git a/lz4_vendor/CMakeLists.txt b/liblz4_vendor/CMakeLists.txt similarity index 84% rename from lz4_vendor/CMakeLists.txt rename to liblz4_vendor/CMakeLists.txt index 114f233a1..6f3240808 100644 --- a/lz4_vendor/CMakeLists.txt +++ b/liblz4_vendor/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.10) -project(lz4_vendor) +project(liblz4_vendor) find_package(ament_cmake REQUIRED) find_package(ament_cmake_vendor_package REQUIRED) @@ -9,7 +9,7 @@ ament_add_default_options() list(INSERT CMAKE_MODULE_PATH 0 "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules") find_package(lz4 QUIET) -ament_vendor(lz4_vendor +ament_vendor(liblz4_vendor SATISFIED ${lz4_FOUND} VCS_URL https://github.com/lz4/lz4.git VCS_VERSION v1.9.4 @@ -23,4 +23,4 @@ ament_vendor(lz4_vendor install(DIRECTORY cmake DESTINATION share/${PROJECT_NAME}) -ament_package(CONFIG_EXTRAS lz4_vendor-extras.cmake) +ament_package(CONFIG_EXTRAS liblz4_vendor-extras.cmake) diff --git a/liblz4_vendor/README.md b/liblz4_vendor/README.md new file mode 100644 index 000000000..b9dec70b3 --- /dev/null +++ b/liblz4_vendor/README.md @@ -0,0 +1,12 @@ +# liblz4_vendor + +Vendor package for the [LZ4](https://github.com/lz4/lz4) library. + +The licensing on lz4 is complicated; see +https://github.com/lz4/lz4/blob/a3be31154f2e4c928ae6dcba9fe7e89e7678c74b/LICENSE +for details. In short, the library itself (everything in the lib directory) +is BSD, while everything else in the package is GPLv2. + +ROS 2 only wants to depend on the BSD-licensed portion, so the name of this +package is very specifically chosen to emphasize that we are only vendoring +the library. diff --git a/lz4_vendor/cmake/Modules/Findlz4.cmake b/liblz4_vendor/cmake/Modules/Findlz4.cmake similarity index 100% rename from lz4_vendor/cmake/Modules/Findlz4.cmake rename to liblz4_vendor/cmake/Modules/Findlz4.cmake diff --git a/liblz4_vendor/liblz4_vendor-extras.cmake b/liblz4_vendor/liblz4_vendor-extras.cmake new file mode 100644 index 000000000..2a25c93a9 --- /dev/null +++ b/liblz4_vendor/liblz4_vendor-extras.cmake @@ -0,0 +1 @@ +list(INSERT CMAKE_MODULE_PATH 0 "${liblz4_vendor_DIR}/Modules") diff --git a/lz4_vendor/package.xml b/liblz4_vendor/package.xml similarity index 69% rename from lz4_vendor/package.xml rename to liblz4_vendor/package.xml index e036088c1..83670fa01 100644 --- a/lz4_vendor/package.xml +++ b/liblz4_vendor/package.xml @@ -1,22 +1,23 @@ - lz4_vendor + liblz4_vendor 0.24.0 LZ4 compression vendor package, providing a dependency for LZ4. Michael Orlov Emerson Knapp ROS Tooling Working Group Apache License 2.0 - BSD - GPLv2 + BSD + GPLv2 - https://facebook.github.io/zstd/ + https://github.com/lz4/lz4/ ament_cmake ament_cmake_vendor_package - lz4 + liblz4-dev + liblz4 ament_cmake diff --git a/lz4_vendor/README.md b/lz4_vendor/README.md deleted file mode 100644 index c06930d33..000000000 --- a/lz4_vendor/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# lz4_vendor - -CMake wrapper for the [LZ4](https://github.com/lz4/lz4) library. diff --git a/lz4_vendor/lz4_vendor-extras.cmake b/lz4_vendor/lz4_vendor-extras.cmake deleted file mode 100644 index 78dae8ffe..000000000 --- a/lz4_vendor/lz4_vendor-extras.cmake +++ /dev/null @@ -1 +0,0 @@ -list(INSERT CMAKE_MODULE_PATH 0 "${lz4_vendor_DIR}/Modules") diff --git a/mcap_vendor/CMakeLists.txt b/mcap_vendor/CMakeLists.txt index ad0258913..0b121ba58 100644 --- a/mcap_vendor/CMakeLists.txt +++ b/mcap_vendor/CMakeLists.txt @@ -3,7 +3,7 @@ project(mcap_vendor LANGUAGES C CXX) ## Dependencies find_package(ament_cmake REQUIRED) -find_package(lz4_vendor REQUIRED) +find_package(liblz4_vendor REQUIRED) find_package(lz4 REQUIRED) find_package(zstd_vendor REQUIRED) find_package(zstd REQUIRED) @@ -71,7 +71,7 @@ build_mcap_vendor() ament_export_include_directories(include/${PROJECT_NAME}) ament_export_targets(mcap HAS_LIBRARY_TARGET) -ament_export_dependencies(lz4_vendor lz4 zstd_vendor zstd) +ament_export_dependencies(liblz4_vendor lz4 zstd_vendor zstd) ## Package ament_package() diff --git a/mcap_vendor/package.xml b/mcap_vendor/package.xml index 6cfb19c0c..b84e9d429 100644 --- a/mcap_vendor/package.xml +++ b/mcap_vendor/package.xml @@ -12,7 +12,7 @@ ament_cmake git - lz4_vendor + liblz4_vendor zstd_vendor