Browse Source

Change CMakeLists.txt to look for SSIZE_T on MSVC too.

tags/json-c-0.15-20200726
Eric Haszlakiewicz 5 years ago
parent
commit
eab1375123
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      CMakeLists.txt

+ 5
- 0
CMakeLists.txt View File

@@ -205,7 +205,12 @@ 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")
list(APPEND CMAKE_EXTRA_INCLUDE_FILES BaseTsd.h)
check_type_size("SSIZE_T" SIZEOF_SIZE_T)
else()
check_type_size("ssize_t" SIZEOF_SSIZE_T)
endif()

check_c_source_compiles(
[=[


Loading…
Cancel
Save