Skip to content

Commit

Permalink
fix MinGW compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
hch12907 committed Feb 18, 2023
1 parent 37026f4 commit 9d7070a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,10 @@ compile_shader(realesrgan_postproc_tta.comp)

add_custom_target(generate-spirv DEPENDS ${SHADER_SPV_HEX_FILES})

if(MINGW)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -municode")
endif()

add_executable(realesrgan-ncnn-vulkan main.cpp realesrgan.cpp)

add_dependencies(realesrgan-ncnn-vulkan generate-spirv)
Expand Down

0 comments on commit 9d7070a

Please sign in to comment.