diff --git a/reactos/dll/opengl/mesa/main/CMakeLists.txt b/reactos/dll/opengl/mesa/main/CMakeLists.txt index 52cb5954b9b..16d9709bb70 100644 --- a/reactos/dll/opengl/mesa/main/CMakeLists.txt +++ b/reactos/dll/opengl/mesa/main/CMakeLists.txt @@ -75,5 +75,6 @@ list(APPEND SOURCE ) add_library(mesa_main STATIC ${SOURCE}) - -allow_warnings(mesa_main) +if(NOT MSVC) + allow_warnings(mesa_main) +endif() diff --git a/reactos/dll/opengl/mesa/swrast/CMakeLists.txt b/reactos/dll/opengl/mesa/swrast/CMakeLists.txt index 81dee90b45b..344f3340bea 100644 --- a/reactos/dll/opengl/mesa/swrast/CMakeLists.txt +++ b/reactos/dll/opengl/mesa/swrast/CMakeLists.txt @@ -28,5 +28,6 @@ list(APPEND SOURCE ) add_library(mesa_swrast STATIC ${SOURCE}) - -allow_warnings(mesa_swrast) +if(NOT MSVC) + allow_warnings(mesa_swrast) +endif()