Просмотр исходного кода

Add detection of defined <LANG>_COMPILER_LAUNCHER vars

Since CMake 3.3 it is possible to use <LANG>_COMPILER_LAUNCHER target
property to define ccache. So we need to check those setting, too.
master
André Klitzing 10 лет назад
Родитель
Сommit
1bb64f774f
1 измененных файлов: 2 добавлений и 1 удалений
  1. +2
    -1
      CMake/cotire.cmake

+ 2
- 1
CMake/cotire.cmake Просмотреть файл

@@ -1811,7 +1811,8 @@ function (cotire_check_precompiled_header_support _language _target _msgVar)
else()
set (${_msgVar} "${_unsupportedCompiler}." PARENT_SCOPE)
endif()
if (CMAKE_${_language}_COMPILER MATCHES "ccache")
get_target_property(launcher ${_target} ${_language}_COMPILER_LAUNCHER)
if (CMAKE_${_language}_COMPILER MATCHES "ccache" OR launcher MATCHES "ccache")
if (NOT "$ENV{CCACHE_SLOPPINESS}" MATCHES "time_macros|pch_defines")
set (${_msgVar}
"ccache requires the environment variable CCACHE_SLOPPINESS to be set to \"pch_defines,time_macros\"."


Загрузка…
Отмена
Сохранить