COMP: Link tar library to cmake

This commit is contained in:
Andy Cedilnik 2005-12-28 16:30:28 -05:00
parent ee1d5b3a98
commit ba63b6f15e
1 changed files with 2 additions and 1 deletions

View File

@ -12,6 +12,7 @@ INCLUDE_DIRECTORIES(
"${CMake_SOURCE_DIR}/Source"
${CMAKE_ZLIB_INCLUDES}
${CMAKE_EXPAT_INCLUDES}
${CMAKE_TAR_INCLUDES}
)
# let cmake know it is supposed to use it
@ -195,7 +196,7 @@ ENDIF (WIN32)
# create a library used by the command line and the GUI
ADD_LIBRARY(CMakeLib ${SRCS})
TARGET_LINK_LIBRARIES(CMakeLib cmsys ${CMAKE_EXPAT_LIBRARIES} ${CMAKE_ZLIB_LIBRARIES})
TARGET_LINK_LIBRARIES(CMakeLib cmsys ${CMAKE_EXPAT_LIBRARIES} ${CMAKE_ZLIB_LIBRARIES} ${CMAKE_TAR_LIBRARIES})
IF (UNIX)
TARGET_LINK_LIBRARIES(CMakeLib ${CMAKE_DL_LIBS})
ENDIF (UNIX)