From 7973fa4f9cdc889059bb0a382715776d1f38429c Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Fri, 20 Apr 2018 11:58:09 +0200 Subject: CMake: Fix builds without zstd Only use zstd defined variables if zstd was found. --- apt-pkg/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apt-pkg') diff --git a/apt-pkg/CMakeLists.txt b/apt-pkg/CMakeLists.txt index fdf27f92d..64709ce34 100644 --- a/apt-pkg/CMakeLists.txt +++ b/apt-pkg/CMakeLists.txt @@ -44,7 +44,7 @@ target_include_directories(apt-pkg ${BZIP2_INCLUDE_DIR} ${LZMA_INCLUDE_DIRS} ${LZ4_INCLUDE_DIRS} - ${ZSTD_INCLUDE_DIRS} + $<$:${ZSTD_INCLUDE_DIRS}> $<$:${UDEV_INCLUDE_DIRS}> ${ICONV_INCLUDE_DIRS} ) @@ -56,7 +56,7 @@ target_link_libraries(apt-pkg ${BZIP2_LIBRARIES} ${LZMA_LIBRARIES} ${LZ4_LIBRARIES} - ${ZSTD_LIBRARIES} + $<$:${ZSTD_LIBRARIES}> $<$:${UDEV_LIBRARIES}> ${ICONV_LIBRARIES} ) -- cgit v1.2.3-70-g09d2