aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libevhtp/fix-cmake4.patch
blob: 1d3fd60edae7f6954e88b0dd2c89b6dd0a1ef652 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 481ddd0e86..a1a806ce99 100644
--- a/CMakeLists.txt	
+++ b/CMakeLists.txt
@@ -40,7 +40,10 @@ check_type_size("int" SIZEOF_INT)
 check_type_size("long" SIZEOF_LONG)
 check_type_size("short" SIZEOF_SHORT)
 
-test_big_endian(HOST_BIG_ENDIAN)
+set(HOST_BIG_ENDIAN OFF)
+if(CMAKE_C_BYTE_ORDER STREQUAL "BIG_ENDIAN")
+    set(HOST_BIG_ENDIAN ON)
+endif()
 
 check_c_compiler_flag(-std=c99 has_c99)