Skip to content
Snippets Groups Projects
Commit afd0eb0a authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Start dropping in broader PCH usage with modern cmake

parent 6c21477a
No related branches found
No related tags found
No related merge requests found
......@@ -303,6 +303,25 @@ target_link_libraries(
add_dependencies(llcommon stage_third_party_libs)
if(${CMAKE_VERSION} VERSION_GREATER "3.15.0")
target_precompile_headers(llcommon
PUBLIC
linden_common.h
llwin32headerslean.h
PRIVATE
<algorithm>
<atomic>
<functional>
<map>
<mutex>
<string>
<string_view>
<thread>
<absl/container/node_hash_map.h>
<absl/container/flat_hash_map.h>
)
endif()
if (LL_TESTS)
include(LLAddBuildTest)
SET(llcommon_TEST_SOURCE_FILES
......
......@@ -102,6 +102,24 @@ target_link_libraries(
${BOOST_SYSTEM_LIBRARY}
)
if(${CMAKE_VERSION} VERSION_GREATER "3.15.0")
target_precompile_headers(llcorehttp
PUBLIC
[["linden_common.h"]]
[["llsd.h"]]
PRIVATE
<boost/intrusive_ptr.hpp>
<boost/shared_ptr.hpp>
<boost/make_shared.hpp>
<boost/weak_ptr.hpp>
<boost/function.hpp>
<boost/noncopyable.hpp>
<string>
<curl/curl.h>
)
endif()
# tests
set(LLCOREHTTP_TESTS ON CACHE BOOL
"Build and run llcorehttp integration tests specifically")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment