summaryrefslogtreecommitdiffstats
path: root/Utilities/cmtar/CMakeLists.txt
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-12-28 16:00:46 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-12-28 16:00:46 (GMT)
commit3a945312ac70a90bd223c5835f6a973f40edb5c7 (patch)
treef8a9f7ca2912182dc1696c914c5058738e3b50e6 /Utilities/cmtar/CMakeLists.txt
parentbc1548b236515514c138da8b59f61af2efbfc4a5 (diff)
downloadCMake-3a945312ac70a90bd223c5835f6a973f40edb5c7.zip
CMake-3a945312ac70a90bd223c5835f6a973f40edb5c7.tar.gz
CMake-3a945312ac70a90bd223c5835f6a973f40edb5c7.tar.bz2
ENH: Windows fixes
Diffstat (limited to 'Utilities/cmtar/CMakeLists.txt')
-rw-r--r--Utilities/cmtar/CMakeLists.txt18
1 files changed, 8 insertions, 10 deletions
diff --git a/Utilities/cmtar/CMakeLists.txt b/Utilities/cmtar/CMakeLists.txt
index dd50316..1a5b35f 100644
--- a/Utilities/cmtar/CMakeLists.txt
+++ b/Utilities/cmtar/CMakeLists.txt
@@ -230,7 +230,9 @@ SET (MAKEDEV_THREE_ARGS 0)
#SET (NEED_BASENAME 0)
#SET (NEED_DIRNAME 0)
#SET (NEED_FNMATCH 1)
-#SET (NEED_MAKEDEV 1)
+IF(UNIX)
+ SET (NEED_MAKEDEV 1)
+ENDIF(UNIX)
#SET (NEED_SNPRINTF 0)
#SET (NEED_STRDUP 0)
#SET (NEED_STRLCPY 0)
@@ -269,8 +271,11 @@ FOREACH(hfile libtar.h tar.h compat/compat.h)
${LIBTAR_BINARY_DIR}/libtar/${outname} @ONLY IMMEDIATE)
ENDFOREACH(hfile)
-CONFIGURE_FILE(${LIBTAR_SOURCE_DIR}/internal.h
- ${LIBTAR_BINARY_DIR}/libtarint/internal.h @ONLY IMMEDIATE)
+FOREACH(hfile internal.h filesystem.h)
+ GET_FILENAME_COMPONENT(outname "${hfile}" NAME)
+ CONFIGURE_FILE(${LIBTAR_SOURCE_DIR}/${hfile}
+ ${LIBTAR_BINARY_DIR}/libtarint/${outname} @ONLY IMMEDIATE)
+ENDFOREACH(hfile)
SET(libtar_SRC
append.c
@@ -344,13 +349,6 @@ ENDIF(NOT HAVE_FNMATCH)
#ENDIF(NOT HAVE_GLOB)
-IF(WIN32)
-SET(NEED_MAKEDEV 0)
-ELSE(WIN32)
-SET(NEED_MAKEDEV 1)
-ENDIF(WIN32)
-
-
CONFIGURE_FILE(${LIBTAR_SOURCE_DIR}/config.h.in
${LIBTAR_BINARY_DIR}/libtar/config.h)