summaryrefslogtreecommitdiffstats
path: root/Utilities/cmtar/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'Utilities/cmtar/CMakeLists.txt')
-rw-r--r--Utilities/cmtar/CMakeLists.txt14
1 files changed, 2 insertions, 12 deletions
diff --git a/Utilities/cmtar/CMakeLists.txt b/Utilities/cmtar/CMakeLists.txt
index 7ffe0e1..fc3a887 100644
--- a/Utilities/cmtar/CMakeLists.txt
+++ b/Utilities/cmtar/CMakeLists.txt
@@ -140,14 +140,6 @@ ELSE(HAVE_SIZEOF_UINT64_T)
SET (uint64_t "long long")
ENDIF(HAVE_SIZEOF_UINT64_T)
-CHECK_TYPE_SIZE("socklen_t" SIZEOF_SOCKLEN_T)
-IF(HAVE_SIZEOF_SOCKLEN_T)
- SET (HAVE_SOCKLEN_T 1)
-ELSE(HAVE_SIZEOF_SOCKLEN_T)
- SET (HAVE_SOCKLEN_T 0)
- SET (socklen_t "unsigned long")
-ENDIF(HAVE_SIZEOF_SOCKLEN_T)
-
CHECK_TYPE_SIZE("gid_t" SIZEOF_GID_T)
IF(HAVE_SIZEOF_GID_T)
SET (HAVE_GID_T 1)
@@ -211,7 +203,6 @@ SET (HAVE_LIBZ 1)
#SET (HAVE_MINOR_T 0)
#SET (HAVE_NLINK_T 1)
#SET (HAVE_SNPRINTF 1)
-#SET (HAVE_SOCKLEN_T 1)
#SET (HAVE_STDINT_H 1)
#SET (HAVE_STDLIB_H 1)
#SET (HAVE_STRDUP 1)
@@ -254,7 +245,6 @@ SET (const 0)
#SET (nlink_t 0)
#SET (off_t 0)
#SET (size_t 0)
-#SET (socklen_t 0)
#SET (uid_t 0)
#SET (uint64_t 0)
SET (LISTHASH_PREFIX "libtar")
@@ -357,7 +347,7 @@ ENDIF(NOT HAVE_FNMATCH)
CONFIGURE_FILE(${LIBTAR_SOURCE_DIR}/config.h.in
${LIBTAR_BINARY_DIR}/libtar/config.h)
-ADD_LIBRARY(tar STATIC ${libtar_SRC})
+ADD_LIBRARY(cmtar STATIC ${libtar_SRC})
ADD_EXECUTABLE(tartest libtar.c)
-TARGET_LINK_LIBRARIES(tartest tar ${CMAKE_ZLIB_LIBRARIES})
+TARGET_LINK_LIBRARIES(tartest cmtar ${CMAKE_ZLIB_LIBRARIES})