summaryrefslogtreecommitdiffstats
path: root/Utilities/cmcurl
diff options
context:
space:
mode:
authorClemens Wasser <clemens.wasser@gmail.com>2023-06-16 19:18:00 (GMT)
committerClemens Wasser <clemens.wasser@gmail.com>2023-06-22 16:11:45 (GMT)
commita8d91e271948e6ace999356c5b7d5f559ae5630e (patch)
tree69aa8ffbba1a0124342caca21d2fb1bdd1ecb0b5 /Utilities/cmcurl
parent59277bccd3834fafa775ad4e7ab11b281dcd44b2 (diff)
downloadCMake-a8d91e271948e6ace999356c5b7d5f559ae5630e.zip
CMake-a8d91e271948e6ace999356c5b7d5f559ae5630e.tar.gz
CMake-a8d91e271948e6ace999356c5b7d5f559ae5630e.tar.bz2
curl: Precompile common expensive headers
Diffstat (limited to 'Utilities/cmcurl')
-rw-r--r--Utilities/cmcurl/lib/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/Utilities/cmcurl/lib/CMakeLists.txt b/Utilities/cmcurl/lib/CMakeLists.txt
index f1d0f76..ba75420 100644
--- a/Utilities/cmcurl/lib/CMakeLists.txt
+++ b/Utilities/cmcurl/lib/CMakeLists.txt
@@ -110,6 +110,10 @@ set_target_properties(${LIB_NAME} PROPERTIES
OUTPUT_NAME ${LIBCURL_OUTPUT_NAME}
)
+if(WIN32 AND CMake_BUILD_PCH)
+ target_precompile_headers(${LIB_NAME} PRIVATE "curl_setup.h" "curl_sspi.h" "${CURL_SOURCE_DIR}/include/curl/curl.h")
+endif()
+
if(0) # This code not needed for building within CMake.
if(CMAKE_SYSTEM_NAME STREQUAL "AIX" OR
CMAKE_SYSTEM_NAME STREQUAL "Linux" OR