diff options
| author | Erik Kundiman <erik@megapahit.org> | 2023-08-01 09:30:00 +0800 | 
|---|---|---|
| committer | Erik Kundiman <erik@megapahit.org> | 2023-08-01 09:30:00 +0800 | 
| commit | 7aa0299d38dd8fdef9d7e722e94db84c7b2fb5f4 (patch) | |
| tree | 2e990083f4b559500f9dab0a0da08769c84919da | |
| parent | d02fa6d02e25cdf955dabd2ff3c63925ba15afa5 (diff) | |
Set so dangling pointer is no error when using GCC
| -rw-r--r-- | indra/llmath/CMakeLists.txt | 6 | 
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/llmath/CMakeLists.txt b/indra/llmath/CMakeLists.txt index fe13d17fce..de00843be3 100644 --- a/indra/llmath/CMakeLists.txt +++ b/indra/llmath/CMakeLists.txt @@ -104,6 +104,12 @@ include_directories(${CMAKE_SOURCE_DIR}/llmeshoptimizer)  target_link_libraries(llmath llcommon)  target_include_directories( llmath  INTERFACE   ${CMAKE_CURRENT_SOURCE_DIR}) +if (USESYSTEMLIBS) +  AND CMAKE_CXX_COMPILER_ID MATCHES "GNU") +  set_source_files_properties(llcalc.cpp PROPERTIES +    COMPILE_FLAGS -Wno-dangling-pointer) +endif () +  include(LibraryInstall)  # Add tests  | 
