Skip to content

Commit 75d65a8

Browse files
Do not fail the build if neither long long nor size_t can be found by CheckTypeSize
1 parent d3b6e79 commit 75d65a8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/clib/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ endif ()
175175

176176
include(CheckTypeSize)
177177
check_type_size("size_t" SIZEOF_SIZE_T)
178-
CHECK_TYPE_SIZE("long long" SIZEOF_LONG_LONG)
179-
if (NOT ${SIZEOF_SIZE_T} EQUAL ${SIZEOF_LONG_LONG})
178+
check_type_size("long long" SIZEOF_LONG_LONG)
179+
if (NOT "${SIZEOF_SIZE_T}" STREQUAL "${SIZEOF_LONG_LONG}")
180180
message (FATAL_ERROR "size_t and long long must be the same size!")
181181
endif ()
182182

0 commit comments

Comments
 (0)