COMP: Link tar library to cmake
This commit is contained in:
parent
ee1d5b3a98
commit
ba63b6f15e
|
@ -12,6 +12,7 @@ INCLUDE_DIRECTORIES(
|
||||||
"${CMake_SOURCE_DIR}/Source"
|
"${CMake_SOURCE_DIR}/Source"
|
||||||
${CMAKE_ZLIB_INCLUDES}
|
${CMAKE_ZLIB_INCLUDES}
|
||||||
${CMAKE_EXPAT_INCLUDES}
|
${CMAKE_EXPAT_INCLUDES}
|
||||||
|
${CMAKE_TAR_INCLUDES}
|
||||||
)
|
)
|
||||||
|
|
||||||
# let cmake know it is supposed to use it
|
# 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
|
# create a library used by the command line and the GUI
|
||||||
ADD_LIBRARY(CMakeLib ${SRCS})
|
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)
|
IF (UNIX)
|
||||||
TARGET_LINK_LIBRARIES(CMakeLib ${CMAKE_DL_LIBS})
|
TARGET_LINK_LIBRARIES(CMakeLib ${CMAKE_DL_LIBS})
|
||||||
ENDIF (UNIX)
|
ENDIF (UNIX)
|
||||||
|
|
Loading…
Reference in New Issue