Fix up-scaling bit depth
[openjpeg.git] / src / lib / openjpwl / CMakeLists.txt
index 616edf58c06d20b99fff7f9d7da66742114a8cda..9e2ace75ae1241df3d5baf5df0dc08bf55ab90b9 100644 (file)
@@ -51,6 +51,9 @@ if(UNIX)
 endif()
 set_target_properties(openjpwl
   PROPERTIES ${OPENJPEG_LIBRARY_PROPERTIES})
+if(${CMAKE_VERSION} VERSION_GREATER "2.8.11")
+  target_compile_options(openjpwl PRIVATE ${OPENJPEG_LIBRARY_COMPILE_OPTIONS})
+endif()
 
 # Install library
 install(TARGETS openjpwl