link in additional libraries that the configure step finds

This commit is contained in:
Bill Hoffman 2009-11-07 10:52:40 -05:00
parent a7ba04a8cc
commit bc701c59de
1 changed files with 1 additions and 0 deletions

View File

@ -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})