From e0cf0cdfd49e5a946dcd202a083fb23f01e4f1fe Mon Sep 17 00:00:00 2001
From: Nicky <nicky.dasmijn@gmail.com>
Date: Sun, 17 Apr 2022 18:04:57 +0200
Subject: Switch to target_include_directories All 3Ps include dirs are treated
 as SYSTEM, this will stop compilers stop emitting warnings from those files
 and greatly helps having high warning levels and not being swamped by
 warnings that come from external libraries.

---
 indra/llmath/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'indra/llmath')

diff --git a/indra/llmath/CMakeLists.txt b/indra/llmath/CMakeLists.txt
index 4c4e59811d..9d1b4f07f3 100644
--- a/indra/llmath/CMakeLists.txt
+++ b/indra/llmath/CMakeLists.txt
@@ -103,7 +103,7 @@ list(APPEND llmath_SOURCE_FILES ${llmath_HEADER_FILES})
 add_library (llmath ${llmath_SOURCE_FILES})
 
 target_link_libraries(llmath llcommon)
-set_target_include_dirs( llmath ${CMAKE_CURRENT_SOURCE_DIR})
+target_include_directories( llmath  INTERFACE   ${CMAKE_CURRENT_SOURCE_DIR})
 
 # Add tests
 if (LL_TESTS)
-- 
cgit v1.2.3