summaryrefslogtreecommitdiff
path: root/cmake/TestLargeFiles.cmake
diff options
context:
space:
mode:
authormayeut <mayeut@users.noreply.github.com>2015-07-04 17:33:28 +0200
committermayeut <mayeut@users.noreply.github.com>2015-07-04 17:33:28 +0200
commit35ddb3abc7def59d4049ea3fb0cba160800980a1 (patch)
tree9ca4bcba5294838cecc5b9f23c9dfc269b37ad2d /cmake/TestLargeFiles.cmake
parent237ddd72f15fffe26e446604b2019604d9ae5211 (diff)
Fix CMake warning when testing for LFS
Update issue #442
Diffstat (limited to 'cmake/TestLargeFiles.cmake')
-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