From aa532893117222e56965c97986d8ee78744dcdc5 Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Thu, 22 Jul 2021 14:19:50 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=B0=D0=B2=D0=BA=D0=B0=20cotire?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMLibCotire.cmake | 2 +- thirdparty/cotire.cmake | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CMLibCotire.cmake b/CMLibCotire.cmake index 8d5b68a..af483ce 100644 --- a/CMLibCotire.cmake +++ b/CMLibCotire.cmake @@ -1,4 +1,4 @@ -include(cotire) +include(cotire OPTIONAL) if(COMMAND cotire) option(CMLIB_COTIRE_ENABLE_PRECOMPILED_HEADER "Enable precompiled headers" OFF) diff --git a/thirdparty/cotire.cmake b/thirdparty/cotire.cmake index 18b55d8..2f970ca 100644 --- a/thirdparty/cotire.cmake +++ b/thirdparty/cotire.cmake @@ -640,6 +640,7 @@ function (cotire_get_target_include_directories _config _language _target _inclu endforeach() list (REMOVE_DUPLICATES _includeDirs) list (REMOVE_DUPLICATES _systemIncludeDirs) + list (REMOVE_ITEM _systemIncludeDirs "/usr/include") if (CMAKE_${_language}_IMPLICIT_INCLUDE_DIRECTORIES) list (REMOVE_ITEM _includeDirs ${CMAKE_${_language}_IMPLICIT_INCLUDE_DIRECTORIES}) endif()