I’m trying to build libtiff on Win32 as a static library with static runtime linkage. I can’t seem to get the project to change the runtime library to static. Here’s my commands:
cd g:\devel\libtiff_out cmake.exe -G "Visual Studio 14 2015" -D BUILD_SHARED_LIBS=OFF -D CMAKE_POLICY_DEFAULT_CMP0091=NEW -D MSVC_RUNTIME_LIBRARY="MultiThreaded$<$<CONFIG:Debug>:Debug>" -s g:\devel\libtiff
At the end I see “CMake Warning: Manually-specified variables were not used by the project: MSVC_RUNTIME_LIBRARY”
The Visual Studio project files still have the DLL version of the runtime libraries selected.
How do I get the setting to apply?
I’m using CMake 3.18. Here’s the doc page on this setting: