diff options
author | Erik Kundiman <erik@megapahit.org> | 2023-07-12 23:06:02 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2023-07-19 16:38:38 +0800 |
commit | 787ffd6b74fb0eb488f936aa7156b7acc1b296eb (patch) | |
tree | e3c2cc90fdd97394fbde979883e1d9c2a95231b4 /indra | |
parent | 6bcebc33c49f4f1b6180640329793e55026da540 (diff) |
No dangling gsl warning on newview with Clang
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/newview/CMakeLists.txt b/indra/newview/CMakeLists.txt index 6a1c975a00..0f5bb57bea 100644 --- a/indra/newview/CMakeLists.txt +++ b/indra/newview/CMakeLists.txt @@ -1930,6 +1930,12 @@ endif() set(ARTWORK_DIR ${CMAKE_CURRENT_SOURCE_DIR} CACHE PATH "Path to artwork files.") +if (CMAKE_CXX_COMPILER_ID MATCHES "Clang") + set_source_files_properties(llappviewerlinux.cpp PROPERTIES + COMPILE_FLAGS -Wno-dangling-gsl + ) +endif () + if (LINUX) set(product SecondLife-${ARCH}-${VIEWER_SHORT_VERSION}.${VIEWER_VERSION_REVISION}) |