Compare commits
3 Commits
f500a10a0d
...
a2ae14a6e8
Author | SHA1 | Date | |
---|---|---|---|
a2ae14a6e8 | |||
5708fcd5e4 | |||
aa53289311 |
@ -1,6 +1,10 @@
|
|||||||
include(cotire)
|
include(cotire OPTIONAL)
|
||||||
|
|
||||||
if(COMMAND cotire)
|
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)
|
option(CMLIB_COTIRE_ENABLE_PRECOMPILED_HEADER "Enable precompiled headers" OFF)
|
||||||
|
endif()
|
||||||
option(CMLIB_COTIRE_ADD_UNITY_BUILD "Enable unity build" OFF)
|
option(CMLIB_COTIRE_ADD_UNITY_BUILD "Enable unity build" OFF)
|
||||||
endif()
|
endif()
|
||||||
|
1
thirdparty/cotire.cmake
vendored
1
thirdparty/cotire.cmake
vendored
@ -640,6 +640,7 @@ function (cotire_get_target_include_directories _config _language _target _inclu
|
|||||||
endforeach()
|
endforeach()
|
||||||
list (REMOVE_DUPLICATES _includeDirs)
|
list (REMOVE_DUPLICATES _includeDirs)
|
||||||
list (REMOVE_DUPLICATES _systemIncludeDirs)
|
list (REMOVE_DUPLICATES _systemIncludeDirs)
|
||||||
|
list (REMOVE_ITEM _systemIncludeDirs "/usr/include")
|
||||||
if (CMAKE_${_language}_IMPLICIT_INCLUDE_DIRECTORIES)
|
if (CMAKE_${_language}_IMPLICIT_INCLUDE_DIRECTORIES)
|
||||||
list (REMOVE_ITEM _includeDirs ${CMAKE_${_language}_IMPLICIT_INCLUDE_DIRECTORIES})
|
list (REMOVE_ITEM _includeDirs ${CMAKE_${_language}_IMPLICIT_INCLUDE_DIRECTORIES})
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user