浏览代码

cmcppdap: Precompile common expensive headers

Clemens Wasser 2 年之前
父节点
当前提交
e2efa89c7f
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      Utilities/cmcppdap/CMakeLists.txt

+ 4 - 0
Utilities/cmcppdap/CMakeLists.txt

@@ -34,4 +34,8 @@ elseif(NOT APPLE)
   target_link_libraries(cmcppdap PRIVATE Threads::Threads)
 endif()
 
+if(CMake_BUILD_PCH)
+  target_precompile_headers(cmcppdap PRIVATE "include/dap/protocol.h")
+endif()
+
 install(FILES NOTICE DESTINATION ${CMAKE_DOC_DIR}/cmcppdap)