Explorar el Código

set default minimum number of target sources to 2

master
Sascha Kratky hace 8 años
padre
commit
3fc4d93dc6
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. +1
    -1
      CMake/cotire.cmake
  2. +1
    -1
      MANUAL.md

+ 1
- 1
CMake/cotire.cmake Ver fichero

@@ -3752,7 +3752,7 @@ else()
set (COTIRE_UNITY_SOURCE_EXCLUDE_EXTENSIONS "m;mm" CACHE STRING set (COTIRE_UNITY_SOURCE_EXCLUDE_EXTENSIONS "m;mm" CACHE STRING
"Ignore sources with the listed file extensions from the generated unity source.") "Ignore sources with the listed file extensions from the generated unity source.")


set (COTIRE_MINIMUM_NUMBER_OF_TARGET_SOURCES "3" CACHE STRING
set (COTIRE_MINIMUM_NUMBER_OF_TARGET_SOURCES "2" CACHE STRING
"Minimum number of sources in target required to enable use of precompiled header.") "Minimum number of sources in target required to enable use of precompiled header.")


if (NOT DEFINED COTIRE_MAXIMUM_NUMBER_OF_UNITY_INCLUDES_INIT) if (NOT DEFINED COTIRE_MAXIMUM_NUMBER_OF_UNITY_INCLUDES_INIT)


+ 1
- 1
MANUAL.md Ver fichero

@@ -324,7 +324,7 @@ directories. A target inherits the property value from its enclosing directory.
### disabling precompiled headers for small targets ### disabling precompiled headers for small targets


The cache variable `COTIRE_MINIMUM_NUMBER_OF_TARGET_SOURCES` can be set to the minimum number of The cache variable `COTIRE_MINIMUM_NUMBER_OF_TARGET_SOURCES` can be set to the minimum number of
source files required to enable the use of a precompiled header. It defaults to 3. To override the
source files required to enable the use of a precompiled header. It defaults to 2. To override the
default, run `cmake` with the following options: default, run `cmake` with the following options:


$ cmake -D COTIRE_MINIMUM_NUMBER_OF_TARGET_SOURCES=5 <path-to-source> $ cmake -D COTIRE_MINIMUM_NUMBER_OF_TARGET_SOURCES=5 <path-to-source>


Cargando…
Cancelar
Guardar