From 4371f145d902425a970793f7ea7589e841d2658b Mon Sep 17 00:00:00 2001 From: egorodet Date: Sat, 3 Jun 2023 13:57:48 +0300 Subject: [PATCH] Disable int overflow warning for FastNoise2 with GNU compiler --- Externals/FastNoise2.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Externals/FastNoise2.cmake b/Externals/FastNoise2.cmake index 3a8e44e..cf2047b 100644 --- a/Externals/FastNoise2.cmake +++ b/Externals/FastNoise2.cmake @@ -5,4 +5,8 @@ CPMAddPackage( OPTIONS "FASTNOISE2_NOISETOOL OFF" "FASTNOISE2_TESTS OFF" -) \ No newline at end of file +) + +if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") + target_compile_options(FastNoise PRIVATE -Wno-overflow) +endif() \ No newline at end of file