summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Haszlakiewicz <erh+git@nimenees.com>2020-06-07 15:19:29 +0000
committerEric Haszlakiewicz <erh+git@nimenees.com>2020-06-07 15:19:29 +0000
commit0a16b23adf7de1222c91ba10277fdbd2e889b144 (patch)
treed7b7d2e914c10a35cb0ae865d1d7f854c9039350
parenteab1375123d0ae1344dcfbfa80c6913b72803a13 (diff)
downloadjson-c-0a16b23adf7de1222c91ba10277fdbd2e889b144.tar.gz
Fix typo in previous commit to check for SSIZE_T on MSVC.
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1c0dd85..50a6770 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -205,9 +205,9 @@ check_type_size(int64_t SIZEOF_INT64_T)
check_type_size(long SIZEOF_LONG)
check_type_size("long long" SIZEOF_LONG_LONG)
check_type_size("size_t" SIZEOF_SIZE_T)
-if ("${CMAKE_C_COMPILER_ID}" STREQUAL "MSVC")
+if (MSVC)
list(APPEND CMAKE_EXTRA_INCLUDE_FILES BaseTsd.h)
-check_type_size("SSIZE_T" SIZEOF_SIZE_T)
+check_type_size("SSIZE_T" SIZEOF_SSIZE_T)
else()
check_type_size("ssize_t" SIZEOF_SSIZE_T)
endif()