diff options
author | Clemens Wasser <clemens.wasser@gmail.com> | 2023-06-16 19:19:01 (GMT) |
---|---|---|
committer | Clemens Wasser <clemens.wasser@gmail.com> | 2023-06-22 16:11:45 (GMT) |
commit | e0eb97e92328da570f5bd92d0ffd732701dc7646 (patch) | |
tree | 2e44429d39830cd5c5c41126d11280aea33a7b27 /Utilities/cmlibuv | |
parent | e2efa89c7f7f9b138b85145d78e17cb07a9e6fd1 (diff) | |
download | CMake-e0eb97e92328da570f5bd92d0ffd732701dc7646.zip CMake-e0eb97e92328da570f5bd92d0ffd732701dc7646.tar.gz CMake-e0eb97e92328da570f5bd92d0ffd732701dc7646.tar.bz2 |
libuv: Precompile common expensive headers
Diffstat (limited to 'Utilities/cmlibuv')
-rw-r--r-- | Utilities/cmlibuv/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Utilities/cmlibuv/CMakeLists.txt b/Utilities/cmlibuv/CMakeLists.txt index ad3d433..9df0c7f 100644 --- a/Utilities/cmlibuv/CMakeLists.txt +++ b/Utilities/cmlibuv/CMakeLists.txt @@ -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) |