diff options
author | Brad King <brad.king@kitware.com> | 2020-02-13 15:11:54 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-02-13 17:59:29 (GMT) |
commit | b83d96f164f158fd4d72ae8f67c1311a9bebd272 (patch) | |
tree | fe99813d44903987c015ed178a2a19a6a331d8f5 /Source | |
parent | 5d8b3aec0cb8652ae867ff08d2e7bfa2060138dd (diff) | |
download | CMake-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.c | 4 |
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" |