opj_j2k_read_cod: remove check for 'No more than one COD marker per tile' (fixes...
[openjpeg.git] / src / lib / openjpwl / CMakeLists.txt
index 9e2ace75ae1241df3d5baf5df0dc08bf55ab90b9..1b33adbe9b964de111f975841741edc4d50be95e 100644 (file)
@@ -51,7 +51,7 @@ if(UNIX)
 endif()
 set_target_properties(openjpwl
   PROPERTIES ${OPENJPEG_LIBRARY_PROPERTIES})
-if(${CMAKE_VERSION} VERSION_GREATER "2.8.11")
+if(NOT ${CMAKE_VERSION} VERSION_LESS "2.8.12")
   target_compile_options(openjpwl PRIVATE ${OPENJPEG_LIBRARY_COMPILE_OPTIONS})
 endif()