From 4197e22da0c7a83253ec7c024680204032d37f82 Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin <dmitry.kalinkin@gmail.com> Date: Sun, 23 Apr 2023 15:07:04 -0400 Subject: [PATCH] Use ZLIB::ZLIB Co-authored-by: Andre Sailer <andre.philippe.sailer@cern.ch> --- DDG4/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DDG4/CMakeLists.txt b/DDG4/CMakeLists.txt index f4f55c20e..21b7c45a5 100644 --- a/DDG4/CMakeLists.txt +++ b/DDG4/CMakeLists.txt @@ -119,7 +119,7 @@ IF(DD4HEP_USE_HEPMC3) IF(ZLIB_FOUND) list(APPEND DDG4HepMC3_INCLUDES ${ZLIB_INCLUDE_DIR}) - list(APPEND DDG4HepMC3_USES ${ZLIB_LIBRARIES}) + list(APPEND DDG4HepMC3_USES ZLIB::ZLIB) list(APPEND DDG4HepMC3_DEFINITIONS HEPMC3_USE_COMPRESSION HEPMC3_Z_SUPPORT=1) ENDIF() IF(LIBLZMA_FOUND) -- GitLab