fix #1345: don't remove big endian test for other platforms
[openjpeg.git] / CMakeLists.txt
index 28fc5fe1cde2927e9e94c9c48b0e4831670c89b9..d343905b07466091e7a2b69f23c9f798a39564e5 100644 (file)
@@ -162,7 +162,7 @@ endif()
 
 #-----------------------------------------------------------------------------
 # Big endian test:
-if (!EMSCRIPTEN)
+if (NOT EMSCRIPTEN)
 include (${CMAKE_ROOT}/Modules/TestBigEndian.cmake)
 TEST_BIG_ENDIAN(OPJ_BIG_ENDIAN)
 endif()