Skip to content

Commit

Permalink
CMAKE_COMPILE_WARNING_AS_ERROR OFF
Browse files Browse the repository at this point in the history
  • Loading branch information
loicmagne committed Jun 19, 2024
1 parent 290ebfd commit 7563ae0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
cmake_minimum_required(VERSION 3.16...3.26)

set(CMAKE_COMPILE_WARNING_AS_ERROR OFF)

option(SDL_SYSTEM "Use system SDL library" OFF)
set(SDL_STATIC ON CACHE BOOL "Build the static version of SDL" FORCE)
set(SDL_SHARED OFF CACHE BOOL "Do not build the shared version of SDL" FORCE)
Expand Down
8 changes: 4 additions & 4 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"description": "Build for macOS 11.0+ (Universal binary) for CI",
"generator": "Xcode",
"cacheVariables": {
"CMAKE_COMPILE_WARNING_AS_ERROR": true
"CMAKE_COMPILE_WARNING_AS_ERROR": false
}
},
{
Expand All @@ -67,7 +67,7 @@
"displayName": "Windows x64 CI build",
"description": "Build for Windows x64 on CI",
"cacheVariables": {
"CMAKE_COMPILE_WARNING_AS_ERROR": true
"CMAKE_COMPILE_WARNING_AS_ERROR": false
}
},
{
Expand All @@ -94,7 +94,7 @@
"description": "Build for Linux x86_64 on CI",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"CMAKE_COMPILE_WARNING_AS_ERROR": true
"CMAKE_COMPILE_WARNING_AS_ERROR": false
}
},
{
Expand All @@ -121,7 +121,7 @@
"description": "Build for Linux aarch64 on CI",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"CMAKE_COMPILE_WARNING_AS_ERROR": true
"CMAKE_COMPILE_WARNING_AS_ERROR": false
}
}
],
Expand Down

0 comments on commit 7563ae0

Please sign in to comment.