Page MenuHomePhabricator

lz4.h is not found on our Ubuntu 22.04 client
Closed, ResolvedPublic

Description

LZ4 is part of our superbuild. It provides a lz4Tagets.cmake file in MITK-superbuild/ep/lib/cmake/lz4. Checked this file on Windows, Ubuntu 20.04 and Ubuntu 22.04. This is the relevant snippet:

# Create imported target LZ4::lz4_shared
add_library(LZ4::lz4_shared SHARED IMPORTED)

set_target_properties(LZ4::lz4_shared PROPERTIES
  INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
)

On Ubuntu 22.04, the line that sets the INTERFACE_INCLUDE_DIRECTORIES target property is simply missing. Adding it manually resolves the issue.

But why is it missing on Ubuntu 22.04 and only recently???

To even increase confusion: Same build client, nightly build works just fine.

Event Timeline

kislinsk created this task.

AFAIK this was a temporary quirk and doesn't happen anymore.