build: do not treat deprecation warnings as errors

This commit is contained in:
Gabriel Ferreira
2022-04-01 19:33:41 -03:00
parent d3f9e0742f
commit 1a76009b69
2 changed files with 1 additions and 2 deletions

View File

@@ -399,7 +399,6 @@ function(build_lib)
target_include_directories(
${bindings-name} PUBLIC ${Python3_INCLUDE_DIRS} ${bindings_output_folder}
)
target_compile_options(${bindings-name} PRIVATE -Wno-error)
# If there is any, remove the "lib" prefix of libraries (search for
# "set(lib${BLIB_LIBNAME}")

View File

@@ -361,7 +361,7 @@ macro(process_options)
else()
add_compile_options(-Wall) # -Wextra
if(${NS3_WARNINGS_AS_ERRORS})
add_compile_options(-Werror)
add_compile_options(-Werror -Wno-error=deprecated-declarations)
endif()
endif()
endif()