diff --git a/indra/llcommon/CMakeLists.txt b/indra/llcommon/CMakeLists.txt
index d9e076bc1275f2842c84b00c403c51ba0d739c91..90a06561a8c1e7cd0e5bdbbd43d77b1ffd9f4d39 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 11dac33e5346dc23537d0df1e72aebf8c61a5053..aed283443a5595bed94424fd084bb826441b4edc 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>