diff options
author | Clemens Wasser <clemens.wasser@gmail.com> | 2023-06-16 19:17:29 (GMT) |
---|---|---|
committer | Clemens Wasser <clemens.wasser@gmail.com> | 2023-06-22 16:11:45 (GMT) |
commit | 59277bccd3834fafa775ad4e7ab11b281dcd44b2 (patch) | |
tree | 8be90c58080b4c2c73fd8b85eaefaa62480d887d /Utilities/cmbzip2 | |
parent | 90dec6e9cc04f1e049ea35e2eaf7bf33f05f2d66 (diff) | |
download | CMake-59277bccd3834fafa775ad4e7ab11b281dcd44b2.zip CMake-59277bccd3834fafa775ad4e7ab11b281dcd44b2.tar.gz CMake-59277bccd3834fafa775ad4e7ab11b281dcd44b2.tar.bz2 |
bzip: Precompile common expensive headers
Diffstat (limited to 'Utilities/cmbzip2')
-rw-r--r-- | Utilities/cmbzip2/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Utilities/cmbzip2/CMakeLists.txt b/Utilities/cmbzip2/CMakeLists.txt index 1d7b265..b52358e 100644 --- a/Utilities/cmbzip2/CMakeLists.txt +++ b/Utilities/cmbzip2/CMakeLists.txt @@ -19,3 +19,7 @@ endif() add_definitions(-D_FILE_OFFSET_BITS=64) add_library(cmbzip2 blocksort.c huffman.c crctable.c randtable.c compress.c decompress.c bzlib.c) + +if(WIN32 AND CMake_BUILD_PCH) + target_precompile_headers(cmbzip2 PRIVATE "bzlib.h") +endif() |