summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmake/TestLargeFiles.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/TestLargeFiles.cmake b/cmake/TestLargeFiles.cmake
index 7960e52c..01e4ea70 100644
--- a/cmake/TestLargeFiles.cmake
+++ b/cmake/TestLargeFiles.cmake
@@ -17,7 +17,7 @@
#
macro(OPJ_TEST_LARGE_FILES VARIABLE)
- if("${VARIABLE}" MATCHES "^${VARIABLE}$")
+ if(NOT DEFINED ${VARIABLE})
# On most platforms it is probably overkill to first test the flags for 64-bit off_t,
# and then separately fseeko. However, in the future we might have 128-bit filesystems