Blame SOURCES/openjpeg2_opj2.patch

1c887f
diff -rupN --no-dereference openjpeg-2.4.0/src/bin/jp2/CMakeLists.txt openjpeg-2.4.0-new/src/bin/jp2/CMakeLists.txt
1c887f
--- openjpeg-2.4.0/src/bin/jp2/CMakeLists.txt	2020-12-28 21:59:39.000000000 +0100
1c887f
+++ openjpeg-2.4.0-new/src/bin/jp2/CMakeLists.txt	2020-12-29 15:45:09.466819414 +0100
1c887f
@@ -44,6 +44,8 @@ endif()
1c887f
 # Loop over all executables:
1c887f
 foreach(exe opj_decompress opj_compress opj_dump)
1c887f
   add_executable(${exe} ${exe}.c ${common_SRCS})
1c887f
+  string(REPLACE "opj_" "opj2_" exe2 ${exe})
1c887f
+  set_target_properties(${exe} PROPERTIES OUTPUT_NAME ${exe2})
1c887f
   if(NOT ${CMAKE_VERSION} VERSION_LESS "2.8.12")
1c887f
     target_compile_options(${exe} PRIVATE ${OPENJP2_COMPILE_OPTIONS})
1c887f
   endif()