diff --git a/CMakeLists.txt b/CMakeLists.txt index 3fd1095..5135970 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,6 +5,15 @@ set(CMAKE_C_STANDARD 23) include_directories(.) +if (MSVC) + add_compile_options( + /Wall /wd4456 /wd4711 /wd4068 /wd4710 /wd4204 /wd4200 /wd4221 /wd4057 /wd4996 /wd6334 + /wd4255 /wd4505 /wd4201 /wd4668 /wd4820 /wd5045 /wd4100 /wd4214 /wd5105 /wd4191 /wd4061 + /D UNICODE /D _UNICODE) +else() + add_compile_options(-Wno-incompatible-pointer-types) +endif() + add_executable(meta meta.c)