From 43f332459198b40dd11f9c478ca421ab71aec27b Mon Sep 17 00:00:00 2001 From: Erik Kundiman Date: Wed, 12 Jul 2023 15:25:59 +0800 Subject: Set so int in bool context isn't an error on GCC and only on a specific file. --- indra/llimage/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'indra/llimage') diff --git a/indra/llimage/CMakeLists.txt b/indra/llimage/CMakeLists.txt index 79f9565ed9..f1eed409cd 100644 --- a/indra/llimage/CMakeLists.txt +++ b/indra/llimage/CMakeLists.txt @@ -67,6 +67,12 @@ target_link_libraries(llimage ll::libjpeg ) +if (NOT (USE_AUTOBUILD_3P OR USE_CONAN)) + if (CMAKE_CXX_COMPILER_ID MATCHES "GNU") + set_source_files_properties(llimageworker.cpp PROPERTIES COMPILE_FLAGS -Wno-int-in-bool-context) + endif() +endif () + # Add tests if (LL_TESTS) SET(llimage_TEST_SOURCE_FILES -- cgit v1.2.3