CMake: Suppress -Wdeprecated-builtins on Emscripten

Due to src/3rdparty/robin_hood
This commit is contained in:
Jonathan G Rennison
2023-03-05 13:23:08 +00:00
parent cbd71b3d58
commit 21fe9efd3f

View File

@@ -195,6 +195,10 @@ macro(compile_flags)
if (OPTION_NO_WARN_UNINIT)
add_compile_options(-Wno-maybe-uninitialized -Wno-uninitialized)
endif (OPTION_NO_WARN_UNINIT)
if (EMSCRIPTEN)
add_compile_options(-Wno-deprecated-builtins)
endif()
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Intel")
add_compile_options(
-Wall