From: mayeut Date: Sat, 4 Jul 2015 15:33:28 +0000 (+0200) Subject: Fix CMake warning when testing for LFS X-Git-Tag: v2.1.1~22^2~117 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=35ddb3abc7def59d4049ea3fb0cba160800980a1;p=openjpeg Fix CMake warning when testing for LFS Update issue #442 --- 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