Blame SOURCES/openjpeg2_opj2.patch

d5d801
diff --git a/src/bin/jp2/CMakeLists.txt b/src/bin/jp2/CMakeLists.txt
d5d801
index 4d4bd95..b1c6159 100644
d5d801
--- a/src/bin/jp2/CMakeLists.txt
d5d801
+++ b/src/bin/jp2/CMakeLists.txt
d5d801
@@ -44,6 +44,8 @@ endif()
d5d801
 # Loop over all executables:
d5d801
 foreach(exe opj_decompress opj_compress opj_dump)
d5d801
   add_executable(${exe} ${exe}.c ${common_SRCS})
d5d801
+  string(REPLACE "opj_" "opj2_" exe2 ${exe})
d5d801
+  set_target_properties(${exe} PROPERTIES OUTPUT_NAME ${exe2})
d5d801
   if(NOT ${CMAKE_VERSION} VERSION_LESS "2.8.12")
d5d801
     target_compile_options(${exe} PRIVATE ${OPENJP2_COMPILE_OPTIONS})
d5d801
   endif()