diff options
Diffstat (limited to 'dep')
-rw-r--r-- | dep/protobuf/CMakeLists.txt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/dep/protobuf/CMakeLists.txt b/dep/protobuf/CMakeLists.txt index c1465b73c7f..cce1181568a 100644 --- a/dep/protobuf/CMakeLists.txt +++ b/dep/protobuf/CMakeLists.txt @@ -106,3 +106,17 @@ if (BUILD_SHARED_LIBS) DESTINATION "${CMAKE_INSTALL_PREFIX}") 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() |