fix #1345: don't remove big endian test for other platforms
[openjpeg.git] / CMakeLists.txt
index 299f74c3eccf3b8ba91e6736096e8a4d377e7158..d343905b07466091e7a2b69f23c9f798a39564e5 100644 (file)
@@ -162,8 +162,10 @@ endif()
 
 #-----------------------------------------------------------------------------
 # Big endian test:
+if (NOT EMSCRIPTEN)
 include (${CMAKE_ROOT}/Modules/TestBigEndian.cmake)
 TEST_BIG_ENDIAN(OPJ_BIG_ENDIAN)
+endif()
 
 #-----------------------------------------------------------------------------
 # Setup file for setting custom ctest vars