Правка cotire

This commit is contained in:
Andrei Astafev 2021-07-22 14:19:50 +03:00
parent ffa6262670
commit aa53289311
2 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,4 @@
include(cotire)
include(cotire OPTIONAL)
if(COMMAND cotire)
option(CMLIB_COTIRE_ENABLE_PRECOMPILED_HEADER "Enable precompiled headers" OFF)

View File

@ -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()