summaryrefslogtreecommitdiffstats
path: root/Utilities/cmbzip2/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'Utilities/cmbzip2/CMakeLists.txt')
-rw-r--r--Utilities/cmbzip2/CMakeLists.txt4
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()