From bc701c59de29232a28c575e1acf46b45a2ebf75e Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Sat, 7 Nov 2009 10:52:40 -0500 Subject: [PATCH] link in additional libraries that the configure step finds --- Utilities/cmlibarchive/libarchive/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Utilities/cmlibarchive/libarchive/CMakeLists.txt b/Utilities/cmlibarchive/libarchive/CMakeLists.txt index 47226aaf3..7bc8eadcb 100644 --- a/Utilities/cmlibarchive/libarchive/CMakeLists.txt +++ b/Utilities/cmlibarchive/libarchive/CMakeLists.txt @@ -115,6 +115,7 @@ IF(BUILD_ARCHIVE_WITHIN_CMAKE) # when building inside the CMake tree only use static # and call the library cmlibarchive ADD_LIBRARY(cmlibarchive STATIC ${libarchive_SOURCES} ${include_HEADERS}) + TARGET_LINK_LIBRARIES(cmlibarchive ${ADDITIONAL_LIBS}) ELSE() # Libarchive is a shared library ADD_LIBRARY(archive SHARED ${libarchive_SOURCES} ${include_HEADERS})