Fix CMake warning when testing for LFS
authormayeut <mayeut@users.noreply.github.com>
Sat, 4 Jul 2015 15:33:28 +0000 (17:33 +0200)
committermayeut <mayeut@users.noreply.github.com>
Sat, 4 Jul 2015 15:33:28 +0000 (17:33 +0200)
Update issue #442

cmake/TestLargeFiles.cmake

index 7960e52c5ca105234207e0e517b5a099316be821..01e4ea70f77b0d26e751226aa9a8a0e68f893e80 100644 (file)
@@ -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