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