Fix up-scaling bit depth
[openjpeg.git] / src / lib / openjpwl / CMakeLists.txt
index 00773db1caa6eb47c7431a4a21b53703bdd68ac0..9e2ace75ae1241df3d5baf5df0dc08bf55ab90b9 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(${CMAKE_VERSION} VERSION_GREATER "2.8.11")
+  target_compile_options(openjpwl PRIVATE ${OPENJPEG_LIBRARY_COMPILE_OPTIONS})
+endif()
 
 # Install library
 install(TARGETS openjpwl