Skip to content

Commit 8e88a19

Browse files
authored
fix MinGW compilation (#195)
1 parent 572db25 commit 8e88a19

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,10 @@ waifu2x_add_shader(waifu2x_postproc_tta.comp)
269269

270270
add_custom_target(generate-spirv DEPENDS ${SHADER_SPV_HEX_FILES})
271271

272+
if(MINGW)
273+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -municode")
274+
endif()
275+
272276
add_executable(waifu2x-ncnn-vulkan main.cpp waifu2x.cpp)
273277

274278
add_dependencies(waifu2x-ncnn-vulkan generate-spirv)

0 commit comments

Comments
 (0)