2017.10.05 15:55 "[Tiff] Problem using libtiff in debug mode with visual studio 2010", by Emmanuel Cosnard

2017.10.10 17:35 "Re: [Tiff] Problem using libtiff in debug mode with visual studio 2010", by Roger Leigh

On 10/10/2017 14:28, Emmanuel Cosnard wrote:

Thank you very much Even, it's working perfect now! But it's not working anymore in release... Is there a way to make it work for both, or should I duplicate them, i.e one for debug and one for release?

Another approach is to use the CMake build:

mkdir build
cd build
cmake -G "Visual Studio 10 2010 [Win64]" \path\to\libtiff
cmake --build. -C Debug
cmake --build. -C Release
[ or build in Visual Studio or run msbuild yourself ]

Or

cmake -DCMAKE_BUILD_TYPE=(Debug|Release) \path\to\libtiff nmake

CMake supports multiple build systems, these are two possibilities which will work using msbuild or nmake. Debug and Release build options are set automatically with both generators, and you can add your own options as needed.

Regards,
Roger