Skip to content

Commit

Permalink
Disable int overflow warning for FastNoise2 with GNU compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
egorodet committed Jun 3, 2023
1 parent 7ed9938 commit 4371f14
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Externals/FastNoise2.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,8 @@ CPMAddPackage(
OPTIONS
"FASTNOISE2_NOISETOOL OFF"
"FASTNOISE2_TESTS OFF"
)
)

if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
target_compile_options(FastNoise PRIVATE -Wno-overflow)
endif()

0 comments on commit 4371f14

Please sign in to comment.