Dep/Protobuf: Enable PCH

This commit is contained in:
Shauren
2025-06-11 21:13:38 +02:00
parent dcb2857f38
commit 1dc1141480
+14
View File
@@ -106,3 +106,17 @@ if (BUILD_SHARED_LIBS)
DESTINATION "${CMAKE_INSTALL_PREFIX}") DESTINATION "${CMAKE_INSTALL_PREFIX}")
endif() endif()
endif() endif()
# Generate precompiled header
if(USE_COREPCH)
list(APPEND protobuf_PCH_HEADERS
<google/protobuf/descriptor.pb.h>
<google/protobuf/io/coded_stream.h>
<google/protobuf/wire_format.h>
<google/protobuf/stubs/hash.h>
<google/protobuf/stubs/strutil.h>
<algorithm>
<memory>)
add_cxx_pch(protobuf "${protobuf_PCH_HEADERS}")
endif()