Skip to content

Commit bf6e9ce

Browse files
committed
cmake: Disable #warning errors on windows
1 parent ebee10f commit bf6e9ce

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmake/jakt-executable.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ function(add_jakt_compiler_flags target)
5050
target_compile_features("${target}" PRIVATE cxx_std_23)
5151

5252
if (WIN32)
53+
target_compile_options("${target}" PRIVATE
54+
# AK complains about having to include <memory>, not a problem for us.
55+
"-Wno-#warnings"
56+
)
5357
cmake_policy(GET CMP0091 msvc_runtime_prop_enabled)
5458
if (NOT msvc_runtime_prop_enabled STREQUAL "NEW")
5559
message(WARNING "CMake Policy CMP0091 is not set to NEW, linker errors from jakt_runtime may result")

0 commit comments

Comments
 (0)