From 8dfa8aa2065f198a31e6adfa5e64369063dbc45e Mon Sep 17 00:00:00 2001
From: Rye Mutt <rye@alchemyviewer.org>
Date: Mon, 5 Apr 2021 15:20:23 -0400
Subject: [PATCH] Fix broken cmake

---
 indra/llcommon/CMakeLists.txt   | 3 +--
 indra/llcorehttp/CMakeLists.txt | 3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/indra/llcommon/CMakeLists.txt b/indra/llcommon/CMakeLists.txt
index d9e076bc127..90a06561a8c 100644
--- a/indra/llcommon/CMakeLists.txt
+++ b/indra/llcommon/CMakeLists.txt
@@ -305,10 +305,9 @@ add_dependencies(llcommon stage_third_party_libs)
 
 if(${CMAKE_VERSION} VERSION_GREATER "3.15.0") 
   target_precompile_headers(llcommon
-    PUBLIC
+    PRIVATE
     linden_common.h
     llwin32headerslean.h
-    PRIVATE
     <algorithm>
     <atomic>
     <functional>
diff --git a/indra/llcorehttp/CMakeLists.txt b/indra/llcorehttp/CMakeLists.txt
index 11dac33e534..aed283443a5 100644
--- a/indra/llcorehttp/CMakeLists.txt
+++ b/indra/llcorehttp/CMakeLists.txt
@@ -104,10 +104,9 @@ target_link_libraries(
 
 if(${CMAKE_VERSION} VERSION_GREATER "3.15.0") 
   target_precompile_headers(llcorehttp
-    PUBLIC
+  PRIVATE
   [["linden_common.h"]]
   [["llsd.h"]]
-  PRIVATE
   <boost/intrusive_ptr.hpp>
   <boost/shared_ptr.hpp>
   <boost/make_shared.hpp>
-- 
GitLab