Sfoglia il codice sorgente

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 8 anni fa
parent
commit
1bb64f774f
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. +2
    -1
      CMake/cotire.cmake

+ 2
- 1
CMake/cotire.cmake Vedi File

@@ -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\"."


Caricamento…
Annulla
Salva