aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2023-11-20 02:01:39 +0100
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2023-11-20 15:21:55 +0100
commit7a80e169c5b128e1aea961e888ca6e9c7b48dd27 (patch)
treef6506253d99c5dda2b516a0c54fbc6e2f46a1702 /cmake
parentd667e0e4142ba8eb8623971539b0f9eec78b7529 (diff)
downloadrneovim-7a80e169c5b128e1aea961e888ca6e9c7b48dd27.tar.gz
rneovim-7a80e169c5b128e1aea961e888ca6e9c7b48dd27.tar.bz2
rneovim-7a80e169c5b128e1aea961e888ca6e9c7b48dd27.zip
build: disable all compiler warnings from dependencies
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Deps.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmake/Deps.cmake b/cmake/Deps.cmake
index e8dcbaa79d..6a7fd77aa8 100644
--- a/cmake/Deps.cmake
+++ b/cmake/Deps.cmake
@@ -18,6 +18,12 @@ if(APPLE)
list(APPEND DEPS_CMAKE_ARGS -D CMAKE_FIND_FRAMEWORK=${CMAKE_FIND_FRAMEWORK})
endif()
+if(MSVC)
+ list(APPEND DEPS_CMAKE_ARGS -D CMAKE_C_FLAGS="/w")
+else()
+ list(APPEND DEPS_CMAKE_ARGS -D CMAKE_C_FLAGS="-w")
+endif()
+
set(DEPS_CMAKE_CACHE_ARGS -DCMAKE_OSX_ARCHITECTURES:STRING=${CMAKE_OSX_ARCHITECTURES})
# MAKE_PRG