aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorBrent Cook <bcook@openbsd.org>2016-07-31 17:10:39 -0500
committerBrent Cook <bcook@openbsd.org>2016-07-31 17:12:47 -0500
commit950dcb2d07ac7bcc0964d3e8dff2cbb9441ba60e (patch)
tree6ff94c079e52edf9a5ce5b84150c12406243f95c /CMakeLists.txt
parentf6582d1d7606d5dc1db65ced83119ba3b9b71985 (diff)
downloadportable-950dcb2d07ac7bcc0964d3e8dff2cbb9441ba60e.tar.gz
portable-950dcb2d07ac7bcc0964d3e8dff2cbb9441ba60e.tar.bz2
portable-950dcb2d07ac7bcc0964d3e8dff2cbb9441ba60e.zip
properly enable strnlen checks for MSVC
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 710d8a9..657ae03 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -107,7 +107,7 @@ if(HAVE_STRNDUP)
107endif() 107endif()
108 108
109if(MSVC) 109if(MSVC)
110 set(HAVE_STRNLEN) 110 set(HAVE_STRNLEN true)
111 add_definitions(-DHAVE_STRNLEN) 111 add_definitions(-DHAVE_STRNLEN)
112else() 112else()
113 check_function_exists(strnlen HAVE_STRNLEN) 113 check_function_exists(strnlen HAVE_STRNLEN)