summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-02-13 15:11:54 (GMT)
committerBrad King <brad.king@kitware.com>2020-02-13 17:59:29 (GMT)
commitb83d96f164f158fd4d72ae8f67c1311a9bebd272 (patch)
treefe99813d44903987c015ed178a2a19a6a331d8f5 /Source
parent5d8b3aec0cb8652ae867ff08d2e7bfa2060138dd (diff)
downloadCMake-b83d96f164f158fd4d72ae8f67c1311a9bebd272.zip
CMake-b83d96f164f158fd4d72ae8f67c1311a9bebd272.tar.gz
CMake-b83d96f164f158fd4d72ae8f67c1311a9bebd272.tar.bz2
libarchive: Update to build within CMake
Hard-code more libarchive options as internal cache entries. Doing so makes some of our `IF(0)` conditions unnecessary, so remove those.
Diffstat (limited to 'Source')
-rw-r--r--Source/cm_get_date.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cm_get_date.c b/Source/cm_get_date.c
index 4bef803..49f5577 100644
--- a/Source/cm_get_date.c
+++ b/Source/cm_get_date.c
@@ -2,6 +2,10 @@
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cm_get_date.h"
+// FIXME: This suppresses use of localtime_r because archive_getdate.c
+// depends the rest of libarchive's checks for that.
+#define CM_GET_DATE
+
#define __archive_get_date cm_get_date
#include "../Utilities/cmlibarchive/libarchive/archive_getdate.c"