From d13ecde7b6583d5ef43b914a9922e719d674ed6c Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Wed, 26 Jun 2024 01:48:08 +1000 Subject: [PATCH] update Windows docs --- docs/windows.mdx | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/windows.mdx b/docs/windows.mdx index c2644256..12d1bc7c 100644 --- a/docs/windows.mdx +++ b/docs/windows.mdx @@ -1,5 +1,18 @@ ## Windows +## CMakeLists + +You will need to disable the `/WX` compiler flag. + +In your project, open the `windows/CMakeList.txt` file and find the following line: + +`target_compile_options(${TARGET} PRIVATE /W4 /WX /wd"4100")` + +Delete the `/WX`: + +`target_compile_options(${TARGET} PRIVATE /W4 /wd"4100")` + + ## pubspec.yaml On Windows, you will need to add a custom version of `native_toolchain_c` to your `dependency_overrides`. This is currently needed to link static libraries when building a DLL.