Blame SOURCES/openjpeg2_opj2.patch

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