Blob Blame History Raw
diff -rupN --no-dereference openjpeg-2.5.2/src/bin/jp2/CMakeLists.txt openjpeg-2.5.2-new/src/bin/jp2/CMakeLists.txt
--- openjpeg-2.5.2/src/bin/jp2/CMakeLists.txt	2024-02-28 14:32:43.000000000 +0100
+++ openjpeg-2.5.2-new/src/bin/jp2/CMakeLists.txt	2024-02-28 17:24:59.806790712 +0100
@@ -44,6 +44,8 @@ endif()
 # Loop over all executables:
 foreach(exe opj_decompress opj_compress opj_dump)
   add_executable(${exe} ${exe}.c ${common_SRCS})
+  string(REPLACE "opj_" "opj2_" exe2 ${exe})
+  set_target_properties(${exe} PROPERTIES OUTPUT_NAME ${exe2})
   target_compile_options(${exe} PRIVATE ${OPENJP2_COMPILE_OPTIONS})
   target_link_libraries(${exe} ${OPENJPEG_LIBRARY_NAME}
     ${PNG_LIBNAME} ${TIFF_LIBNAME} ${LCMS_LIBNAME}