From 0e9651441369ae6984f728b9df14dbc2fa41aa58 Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Thu, 15 Oct 2020 06:55:02 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D1=81=D0=B2=D1=8F=D0=B7=D0=BA=D0=B8?= =?UTF-8?q?=20cotire=20+=20clang?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- thirdparty/cotire.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/thirdparty/cotire.cmake b/thirdparty/cotire.cmake index 075ec79..18b55d8 100644 --- a/thirdparty/cotire.cmake +++ b/thirdparty/cotire.cmake @@ -1136,6 +1136,11 @@ function (cotire_parse_includes _language _scanOutput _ignoredIncludeDirs _honor string (REPLACE ";" "\\;" _scanOutput "${_scanOutput}") # then separate lines string (REGEX REPLACE "\n" ";" _scanOutput "${_scanOutput}") + if ("${_language}" STREQUAL "CXX") + # Fix clang9's libc++ errno + message (STATUS "replacing with ") + string (REGEX REPLACE "include_next" "include" _scanOutput "${_scanOutput}") + endif() list (LENGTH _scanOutput _len) # remove duplicate lines to speed up parsing list (REMOVE_DUPLICATES _scanOutput)