blob: 2ab689caf6617bbe13b1c96bfdf8d8f506470f84 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
--- CMakeLists.txt.orig 2025-06-26 12:43:44 UTC
+++ CMakeLists.txt
@@ -421,6 +421,10 @@ endif ()
elseif (ENABLE_STATIC_EXE)
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libgcc -static-libstdc++")
endif ()
+# CMake 3.20 doesn't do the tests internally in TestBigEndian
+# that end up setting HAVE_STDINT_H and similar.
+include(CheckTypeSize)
+CHECK_TYPE_SIZE("unsigned short" CMAKE_SIZEOF_UNSIGNED_SHORT LANGUAGE C)
if (ENABLE_FRAME_POINTER)
# disable frame pointer omission
|