fix(build): only pass -municode if MINGW #19049

Avoids this warning in the Windows build:

    2022-06-22T08:58:13.0542153Z LINK : warning LNK4044: unrecognized option '/municode'; ignored [D:\a\neovim\neovim\build\test\functional\fixtures\printenv-test.vcxproj]
This commit is contained in:
Justin M. Keyes 2022-06-22 16:09:19 +02:00 committed by GitHub
parent dd591adf8a
commit b20b28249b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,7 @@ target_link_libraries(tty-test ${LIBUV_LIBRARIES})
add_executable(shell-test EXCLUDE_FROM_ALL shell-test.c)
add_executable(printargs-test EXCLUDE_FROM_ALL printargs-test.c)
add_executable(printenv-test EXCLUDE_FROM_ALL printenv-test.c)
if(WIN32)
if(MINGW)
set_target_properties(printenv-test PROPERTIES LINK_FLAGS -municode)
endif()