diff options
Diffstat (limited to 'Utilities')
-rw-r--r-- | Utilities/cmlibuv/CMakeLists.txt | 8 | ||||
-rw-r--r-- | Utilities/cmlibuv/src/win/internal.h | 4 |
2 files changed, 12 insertions, 0 deletions
diff --git a/Utilities/cmlibuv/CMakeLists.txt b/Utilities/cmlibuv/CMakeLists.txt index 7f2d587..f1faf18 100644 --- a/Utilities/cmlibuv/CMakeLists.txt +++ b/Utilities/cmlibuv/CMakeLists.txt @@ -1,5 +1,13 @@ project(libuv C) +# Disable warnings to avoid changing 3rd party code. +if(CMAKE_C_COMPILER_ID MATCHES + "^(GNU|Clang|AppleClang|XL|VisualAge|SunPro|MIPSpro|HP|Intel)$") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -w") +elseif(CMAKE_C_COMPILER_ID STREQUAL "PathScale") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -woffall") +endif() + find_package(Threads) set(uv_libraries ${CMAKE_THREAD_LIBS_INIT}) diff --git a/Utilities/cmlibuv/src/win/internal.h b/Utilities/cmlibuv/src/win/internal.h index b8cfde9..8a17e94 100644 --- a/Utilities/cmlibuv/src/win/internal.h +++ b/Utilities/cmlibuv/src/win/internal.h @@ -22,6 +22,10 @@ #ifndef UV_WIN_INTERNAL_H_ #define UV_WIN_INTERNAL_H_ +#if defined(_MSC_VER) +# pragma warning(push,1) +#endif + #include "uv.h" #include "../uv-common.h" |