Blame SOURCES/openjpeg2_opj2.patch

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