Compare commits

...

3 Commits

2 changed files with 7 additions and 2 deletions

View File

@ -1,6 +1,10 @@
include(cotire)
include(cotire OPTIONAL)
if(COMMAND cotire)
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
option(CMLIB_COTIRE_ENABLE_PRECOMPILED_HEADER "Enable precompiled headers" ON)
else()
option(CMLIB_COTIRE_ENABLE_PRECOMPILED_HEADER "Enable precompiled headers" OFF)
endif()
option(CMLIB_COTIRE_ADD_UNITY_BUILD "Enable unity build" OFF)
endif()

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