From 66cb51f57a4e9ebc602159249498d9fbd5ccda50 Mon Sep 17 00:00:00 2001 From: kaetemi Date: Tue, 1 Feb 2022 09:22:18 +0800 Subject: [PATCH] Set required macro of Hunter curl dependency globally to fix PCH issue --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b8bc4af3e..580b3e082 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -53,6 +53,9 @@ IF(HUNTER_ENABLED) SET(WITH_STATIC_LIBXML2 ON CACHE BOOL "static libxml2" FORCE) SET(WITH_STATIC_EXTERNAL ON CACHE BOOL "static external" FORCE) SET(WITH_EXTERNAL OFF CACHE BOOL "external libs" FORCE) + + # Workaround for PCH compilation issue, from curl intsizeof depencency + ADD_DEFINITIONS(-D__STDC_LIMIT_MACROS) ENDIF()