From 8527fbb17b327b3fe5c08cb6e6b977bdde633b4b Mon Sep 17 00:00:00 2001 From: Josh Klontz Date: Sat, 12 Apr 2014 10:25:48 -0400 Subject: [PATCH] Expose ADDITIONAL_LIBS for projects using libarchive as a subdirectory and linking against archive_static. --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2cdb9fb48..1010b4f06 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1491,6 +1491,12 @@ CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/build/cmake/config.h.in INCLUDE_DIRECTORIES(BEFORE ${CMAKE_CURRENT_BINARY_DIR}) ADD_DEFINITIONS(-DHAVE_CONFIG_H) +# +# Expose ADDITIONAL_LIBS for projects using libarchive as a subdirectory +# and linking against archive_static. +# +set(LIBARCHIVE_ADDITIONAL_LIBS ${ADDITIONAL_LIBS} PARENT_SCOPE) + # # Register installation of PDF documents. # -- 2.47.2