summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMehdi Sabwat <mehdi@videolabs.io>2021-06-01 22:39:27 +0200
committerMehdi Sabwat <mehdi@videolabs.io>2021-06-01 22:39:27 +0200
commit99c28c960c18bfc0a4da5ec24adcedff1f1b143c (patch)
tree8180c61e17ee2aa6c2a85f177e559e0e5e981c9a
parentb6b8d28b3a85b74ff5415565cff2c20c019ca3c5 (diff)
fix #1345: don't remove big endian test for other platforms
thanks to @ePirat, it turns out that !EMSCRIPTEN does not evaluate to 1 on other platforms, so the the #1345 actually disabled the test for all platforms.
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 28fc5fe1..d343905b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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()