From 7dc68c82bcb64469b13936b9895212ea42b97550 Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Mon, 14 Aug 2017 12:15:00 -0500 Subject: set SMALL_TIME_T when sizeof time_t == 4 --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 4462a79..b897a53 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -306,6 +306,7 @@ endif() check_type_size(time_t SIZEOF_TIME_T) if(SIZEOF_TIME_T STREQUAL "4") set(SMALL_TIME_T true) + add_definitions(-DSMALL_TIME_T) message(WARNING " ** Warning, this system is unable to represent times past 2038\n" " ** It will behave incorrectly when handling valid RFC5280 dates") endif() -- cgit v1.2.3-55-g6feb