aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2022-05-25 19:43:34 -0400
committerGitHub <noreply@github.com>2022-05-25 19:43:34 -0400
commit6db3f3f62457ff99a763d912f42d6d66eea8b74a (patch)
tree366164663b60928cf70ed7a198dec1d5f1807f1b
parentcbf57fa353e54e01ae405565caddf3725a2814ba (diff)
parente21899ac4f86ffd7b8eca2eedcd51bca6ded2434 (diff)
downloadrneovim-6db3f3f62457ff99a763d912f42d6d66eea8b74a.tar.gz
rneovim-6db3f3f62457ff99a763d912f42d6d66eea8b74a.tar.bz2
rneovim-6db3f3f62457ff99a763d912f42d6d66eea8b74a.zip
Merge pull request #18748 from dundargoc/ci/msvc
ci(mingw): only enable -municode for MinGW
-rwxr-xr-xsrc/nvim/CMakeLists.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nvim/CMakeLists.txt b/src/nvim/CMakeLists.txt
index 38be5bfb1d..da74b4dc9d 100755
--- a/src/nvim/CMakeLists.txt
+++ b/src/nvim/CMakeLists.txt
@@ -13,8 +13,10 @@ if(USE_GCOV)
endif()
if(WIN32)
- # tell MinGW compiler to enable wmain
- set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -municode")
+ if(MINGW)
+ # Enable wmain
+ set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -municode")
+ endif()
elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -framework CoreServices")
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -framework CoreServices")