diff options
author | Brent Cook <busterb@gmail.com> | 2023-10-15 19:05:29 -0500 |
---|---|---|
committer | Brent Cook <busterb@gmail.com> | 2023-10-29 16:52:28 -0500 |
commit | 1fd73818df53ae51adb681a34b2d5bca4bb37e49 (patch) | |
tree | 577a385add2cc828cc69f834bb56c6f12f1ce74e /CMakeLists.txt | |
parent | ce79c96489b2d95de95d27f91ab6281d91f92dca (diff) | |
download | portable-1fd73818df53ae51adb681a34b2d5bca4bb37e49.tar.gz portable-1fd73818df53ae51adb681a34b2d5bca4bb37e49.tar.bz2 portable-1fd73818df53ae51adb681a34b2d5bca4bb37e49.zip |
adjust how sizeof time_t is set, the current way causes issues with MSVC 2022's preprocessor
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 8c2e4ba..61ff186 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -404,7 +404,6 @@ if(SIZEOF_TIME_T STREQUAL "4") | |||
404 | message(WARNING " ** Warning, this system is unable to represent times past 2038\n" | 404 | message(WARNING " ** Warning, this system is unable to represent times past 2038\n" |
405 | " ** It will behave incorrectly when handling valid RFC5280 dates") | 405 | " ** It will behave incorrectly when handling valid RFC5280 dates") |
406 | endif() | 406 | endif() |
407 | add_definitions(-DSIZEOF_TIME_T=${SIZEOF_TIME_T}) | ||
408 | 407 | ||
409 | set(OPENSSL_LIBS ssl crypto ${PLATFORM_LIBS}) | 408 | set(OPENSSL_LIBS ssl crypto ${PLATFORM_LIBS}) |
410 | set(LIBTLS_LIBS tls ${PLATFORM_LIBS}) | 409 | set(LIBTLS_LIBS tls ${PLATFORM_LIBS}) |