diff --git a/CPP/CMakeLists.txt b/CPP/CMakeLists.txt index 20e96522..e89ce45f 100644 --- a/CPP/CMakeLists.txt +++ b/CPP/CMakeLists.txt @@ -72,7 +72,7 @@ if (NOT (CLIPPER2_USINGZ STREQUAL "ONLY")) if (MSVC) target_compile_options(Clipper2 PRIVATE /W4 /WX) else() - target_compile_options(Clipper2 PRIVATE -Wall -Wextra -Wpedantic -Werror) + target_compile_options(Clipper2 PRIVATE -Wall -Wextra -Wpedantic -Werror -Wno-c++20-compat) target_link_libraries(Clipper2 PUBLIC -lm) endif() endif() @@ -96,7 +96,7 @@ if (NOT (CLIPPER2_USINGZ STREQUAL "OFF")) if (MSVC) target_compile_options(Clipper2Z PRIVATE /W4 /WX) else() - target_compile_options(Clipper2Z PRIVATE -Wall -Wextra -Wpedantic -Werror) + target_compile_options(Clipper2Z PRIVATE -Wall -Wextra -Wpedantic -Werror -Wno-c++20-compat) target_link_libraries(Clipper2Z PUBLIC -lm) endif() endif()