diff options
author | Erik Kundiman <erik@megapahit.org> | 2023-07-12 12:28:07 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2023-07-19 10:58:00 +0800 |
commit | 0f121ca6a6d1d505ca6cb49683c6a1ebb69e6a31 (patch) | |
tree | 8e60c88ba6979207668a00048ad1138991c52bf8 /indra/llcommon/CMakeLists.txt | |
parent | 146f292869a0ca2a82768374c81ae519a5eee287 (diff) |
Deprecated declarations aren't treated as errors
I had added this to CMAKE_CXX_FLAGS in 00-Common before, and only when
the compiler was Clang. But it turned out that GCC was treating them as
errors too, that the addition would need to be applied to all compilers.
So I prefer to put it here in llcommon with the scope set to PUBLIC
cause the errors would show up again when compiling other LL libraries
if the scope is set to something else.
Diffstat (limited to 'indra/llcommon/CMakeLists.txt')
-rw-r--r-- | indra/llcommon/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/llcommon/CMakeLists.txt b/indra/llcommon/CMakeLists.txt index c58956bd36..e5a3e5e0c7 100644 --- a/indra/llcommon/CMakeLists.txt +++ b/indra/llcommon/CMakeLists.txt @@ -281,6 +281,8 @@ target_include_directories(llcommon PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}) if (USE_AUTOBUILD_3P OR USE_CONAN) add_dependencies(llcommon stage_third_party_libs) +else () + target_compile_options(${PROJECT_NAME} PUBLIC -Wno-deprecated-declarations) endif () if (LL_TESTS) |