summaryrefslogtreecommitdiffstats
path: root/Utilities/cmtar/CMakeLists.txt
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-12-30 22:27:57 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-12-30 22:27:57 (GMT)
commitc09548b50e908e1357dd2001a36584d12344eabc (patch)
tree4e90d4a990e4af93a72651c8fcb9b9940b993d4e /Utilities/cmtar/CMakeLists.txt
parent6534e66e61975903c554c2b751c0d2761e4fe181 (diff)
downloadCMake-c09548b50e908e1357dd2001a36584d12344eabc.zip
CMake-c09548b50e908e1357dd2001a36584d12344eabc.tar.gz
CMake-c09548b50e908e1357dd2001a36584d12344eabc.tar.bz2
COMP: Fix support for vsnprintf
Diffstat (limited to 'Utilities/cmtar/CMakeLists.txt')
-rw-r--r--Utilities/cmtar/CMakeLists.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/Utilities/cmtar/CMakeLists.txt b/Utilities/cmtar/CMakeLists.txt
index 016173f..6b8f4b6 100644
--- a/Utilities/cmtar/CMakeLists.txt
+++ b/Utilities/cmtar/CMakeLists.txt
@@ -97,6 +97,7 @@ FOREACH(func
strsep
strdup
strftime
+ vsnprintf
glob
)
CHECK_SYMBOL_EXISTS_EX("${func}")
@@ -312,10 +313,10 @@ SET(NEED_STRMODE 1)
ENDIF(NOT HAVE_STRMODE)
IF(WIN32)
-IF(NOT HAVE_SNPRINTF)
+IF(NOT HAVE_SNPRINTF OR NOT HAVE_VSNPRINTF)
SET(libtar_SRC ${libtar_SRC} compat/snprintf.c)
SET(NEED_SNPRINTF 1)
-ENDIF(NOT HAVE_SNPRINTF)
+ENDIF(NOT HAVE_SNPRINTF OR NOT HAVE_VSNPRINTF)
ENDIF(WIN32)
IF(NOT HAVE_DIRNAME)