diff options
| -rw-r--r-- | indra/llcommon/CMakeLists.txt | 4 | ||||
| -rw-r--r-- | indra/llmessage/CMakeLists.txt | 7 | ||||
| -rw-r--r-- | indra/newview/CMakeLists.txt | 2 | 
3 files changed, 13 insertions, 0 deletions
diff --git a/indra/llcommon/CMakeLists.txt b/indra/llcommon/CMakeLists.txt index e5a3e5e0c7..758d746d54 100644 --- a/indra/llcommon/CMakeLists.txt +++ b/indra/llcommon/CMakeLists.txt @@ -283,6 +283,10 @@ if (USE_AUTOBUILD_3P OR USE_CONAN)  add_dependencies(llcommon stage_third_party_libs)  else ()  	target_compile_options(${PROJECT_NAME} PUBLIC -Wno-deprecated-declarations) +	if (CMAKE_CXX_COMPILER_ID MATCHES "GNU") +		set_source_files_properties(llsdutil.cpp PROPERTIES +			COMPILE_FLAGS -Wno-stringop-truncation) +	endif()  endif ()  if (LL_TESTS) diff --git a/indra/llmessage/CMakeLists.txt b/indra/llmessage/CMakeLists.txt index 2fef3cf15b..92a5f783e0 100644 --- a/indra/llmessage/CMakeLists.txt +++ b/indra/llmessage/CMakeLists.txt @@ -203,6 +203,13 @@ target_link_libraries(  )  target_include_directories( llmessage  INTERFACE   ${CMAKE_CURRENT_SOURCE_DIR}) +if (NOT (USE_AUTOBUILD_3P OR USE_CONAN)) +	if (CMAKE_CXX_COMPILER_ID MATCHES "GNU") +		set_source_files_properties(llnamevalue.cpp PROPERTIES +			COMPILE_FLAGS -Wno-stringop-truncation) +	endif() +endif () +  # tests  if (LL_TESTS)    SET(llmessage_TEST_SOURCE_FILES diff --git a/indra/newview/CMakeLists.txt b/indra/newview/CMakeLists.txt index 1dbaa7437c..e9218f466c 100644 --- a/indra/newview/CMakeLists.txt +++ b/indra/newview/CMakeLists.txt @@ -1942,6 +1942,8 @@ elseif (CMAKE_CXX_COMPILER_ID MATCHES "GNU")  		llhttpretrypolicy.cpp  		llpanelface.cpp  		PROPERTIES COMPILE_FLAGS -Wno-maybe-uninitialized) +	set_source_files_properties(llurl.cpp PROPERTIES COMPILE_FLAGS +		-Wno-stringop-truncation)  endif ()  if (LINUX)  | 
