Skip to content

Commit 3c53907

Browse files
committed
Windows compilation fix
1 parent 9fe4be4 commit 3c53907

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Libraries/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ set(WEBP_BUILD_EXTRAS OFF CACHE BOOL "") # Disable all extra utilities
2424
set(WEBP_ENABLE_LIBWEBPMUX OFF CACHE BOOL "") # no metadata muxing
2525
set(WEBP_ENABLE_LIBWEBPDEMUX OFF CACHE BOOL "") # no metadata demuxing
2626
add_subdirectory(libwebp) # for reading webp files
27-
27+
if(MSVC)
28+
target_compile_options(webpdecoder PUBLIC "/MT$<$<STREQUAL:$<CONFIGURATION>,Debug>:d>")
29+
set_target_properties(webpdecoder PROPERTIES CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>$" )
30+
endif()
2831
if(ENABLE_XZ)
2932
_message(STATUS "Configuring liblzma")
3033
add_subdirectory(xz) # for decompressing .tar.xz

0 commit comments

Comments
 (0)