mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-08-23 23:33:45 +02:00
16 lines
574 B
Diff
16 lines
574 B
Diff
# Disables checking for endianness when targeting Emscripten because it causes configuration errors, and because we already know Emscripten targets are always little-endian.
|
|
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -180,7 +180,10 @@ endif ()
|
|
include ( TestInline )
|
|
include ( TestVLA )
|
|
include ( TestBigEndian )
|
|
-test_big_endian ( WORDS_BIGENDIAN )
|
|
+string ( TOLOWER ${CMAKE_SYSTEM_NAME} SYSTEM_LOWER )
|
|
+if ( NOT SYSTEM_LOWER STREQUAL "emscripten" )
|
|
+ test_big_endian ( WORDS_BIGENDIAN )
|
|
+endif ()
|
|
|
|
unset ( LIBFLUID_CPPFLAGS CACHE )
|
|
unset ( LIBFLUID_LIBS CACHE )
|