aboutsummaryrefslogtreecommitdiff
path: root/apps/ocspcheck/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'apps/ocspcheck/CMakeLists.txt')
-rw-r--r--apps/ocspcheck/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/ocspcheck/CMakeLists.txt b/apps/ocspcheck/CMakeLists.txt
index b960a81..43b091a 100644
--- a/apps/ocspcheck/CMakeLists.txt
+++ b/apps/ocspcheck/CMakeLists.txt
@@ -14,7 +14,8 @@ else()
14endif() 14endif()
15 15
16check_function_exists(strtonum HAVE_STRTONUM) 16check_function_exists(strtonum HAVE_STRTONUM)
17if(HAVE_STRTONUM) 17if(HAVE_STRTONUM AND CMAKE_SYSTEM_NAME MATCHES "Darwin" AND
18 CMAKE_HOST_SYSTEM_VERSION VERSION_GREATER_EQUAL 20)
18 add_definitions(-DHAVE_STRTONUM) 19 add_definitions(-DHAVE_STRTONUM)
19else() 20else()
20 set(OCSPCHECK_SRC ${OCSPCHECK_SRC} compat/strtonum.c) 21 set(OCSPCHECK_SRC ${OCSPCHECK_SRC} compat/strtonum.c)