1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-15 12:16:40 +08:00

libuv: Precompile common expensive headers

This commit is contained in:
Clemens Wasser
2023-06-16 21:19:01 +02:00
parent e2efa89c7f
commit e0eb97e923

View File

@@ -365,4 +365,8 @@ add_library(cmlibuv STATIC ${uv_sources})
target_link_libraries(cmlibuv ${uv_libraries})
set_property(TARGET cmlibuv PROPERTY COMPILE_DEFINITIONS ${uv_defines})
if(WIN32 AND CMake_BUILD_PCH)
target_precompile_headers(cmlibuv PRIVATE "include/uv.h" "src/win/internal.h")
endif()
install(FILES LICENSE DESTINATION ${CMAKE_DOC_DIR}/cmlibuv)