diff options
author | Clemens Wasser <clemens.wasser@gmail.com> | 2023-06-16 19:18:43 (GMT) |
---|---|---|
committer | Clemens Wasser <clemens.wasser@gmail.com> | 2023-06-22 16:11:45 (GMT) |
commit | 9d7921d3886e27f3d564d1f680b318766b9786e7 (patch) | |
tree | 6fc8adeab46ec5bdbbf033967a8e382d02345f8d /Utilities | |
parent | 6aaefdb3be439d82cd9b681a380032e0bd7326b7 (diff) | |
download | CMake-9d7921d3886e27f3d564d1f680b318766b9786e7.zip CMake-9d7921d3886e27f3d564d1f680b318766b9786e7.tar.gz CMake-9d7921d3886e27f3d564d1f680b318766b9786e7.tar.bz2 |
liblzma: Precompile common expensive headers
Diffstat (limited to 'Utilities')
-rw-r--r-- | Utilities/cmliblzma/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Utilities/cmliblzma/CMakeLists.txt b/Utilities/cmliblzma/CMakeLists.txt index 3121fbe..3ba3ce9 100644 --- a/Utilities/cmliblzma/CMakeLists.txt +++ b/Utilities/cmliblzma/CMakeLists.txt @@ -186,4 +186,8 @@ ELSEIF((CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_ID STREQUAL "LCC" SET_PROPERTY(TARGET cmliblzma PROPERTY COMPILE_FLAGS "-O0") ENDIF() +if(WIN32 AND CMake_BUILD_PCH) + target_precompile_headers(cmliblzma PRIVATE "common/mythread.h") +endif() + INSTALL(FILES COPYING DESTINATION ${CMAKE_DOC_DIR}/cmliblzma) |