From 7e3fd2faf509655065659148cabf87d119c4b483 Mon Sep 17 00:00:00 2001 From: DRC Date: Wed, 25 May 2011 06:04:43 +0000 Subject: [PATCH] jpegtran on Windows needs the same fix as cjpeg and djpeg to eliminate errors when I/O redirection is used. git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.1.x@650 632fc199-4ca6-4c93-a231-07263d6284db --- CMakeLists.txt | 1 + ChangeLog.txt | 8 ++++++++ sharedlib/CMakeLists.txt | 1 + 3 files changed, 10 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index f347edd..e69a25f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -189,6 +189,7 @@ target_link_libraries(djpeg-static jpeg-static) add_executable(jpegtran-static jpegtran.c cdjpeg.c rdswitch.c transupp.c) target_link_libraries(jpegtran-static jpeg-static) +set_property(TARGET jpegtran-static PROPERTY COMPILE_FLAGS "-DUSE_SETMODE") add_executable(rdjpgcom rdjpgcom.c) diff --git a/ChangeLog.txt b/ChangeLog.txt index 50a6cd2..ecba108 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,11 @@ +1.1.2 +===== + +[1] Eliminated errors in the output of jpegtran on Windows that occurred when +the application was invoked using I/O redirection +(jpegtran output.jpg). + + 1.1.1 ===== diff --git a/sharedlib/CMakeLists.txt b/sharedlib/CMakeLists.txt index 7db7e2f..97e06e3 100755 --- a/sharedlib/CMakeLists.txt +++ b/sharedlib/CMakeLists.txt @@ -51,6 +51,7 @@ target_link_libraries(djpeg jpeg) add_executable(jpegtran ../jpegtran.c ../cdjpeg.c ../rdswitch.c ../transupp.c) target_link_libraries(jpegtran jpeg) +set_property(TARGET jpegtran PROPERTY COMPILE_FLAGS "-DUSE_SETMODE") install(TARGETS jpeg cjpeg djpeg jpegtran ARCHIVE DESTINATION lib -- 2.40.0