diff options
author | Erik Kundiman <erik@megapahit.org> | 2025-06-03 18:00:34 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2025-06-03 18:00:34 +0800 |
commit | befce1b8547d7dadb692b9246339433dca869a45 (patch) | |
tree | 538e2d6101676f84f66cc586f32f399fff4f8738 | |
parent | dad8be14580b75af6fa0b97e41d5f8103e23acbe (diff) |
Exclude Windows from using -Wno-unused-but-set-variable
compile flag.
-rw-r--r-- | indra/newview/CMakeLists.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/newview/CMakeLists.txt b/indra/newview/CMakeLists.txt index 32afa2ba5f..e61bb26c7e 100644 --- a/indra/newview/CMakeLists.txt +++ b/indra/newview/CMakeLists.txt @@ -2045,8 +2045,9 @@ endif() set(ARTWORK_DIR ${CMAKE_CURRENT_SOURCE_DIR} CACHE PATH "Path to artwork files.") -set_source_files_properties(llinventorygallery.cpp PROPERTIES COMPILE_FLAGS - -Wno-unused-but-set-variable) +if (NOT WINDOWS) + set_source_files_properties(llinventorygallery.cpp PROPERTIES COMPILE_FLAGS -Wno-unused-but-set-variable) +endif () if (CMAKE_CXX_COMPILER_ID MATCHES Clang) set_source_files_properties(llappviewerlinux.cpp PROPERTIES COMPILE_FLAGS -Wno-dangling-gsl |