From dcf05bb6a87583d3691603e6c18e942ef0f3f383 Mon Sep 17 00:00:00 2001 From: Sascha Kratky Date: Sun, 5 Jul 2015 11:45:38 +0200 Subject: [PATCH] remove effect of COTIRE_MINIMUM_NUMBER_OF_TARGET_SOURCES on unity targets --- CMake/cotire.cmake | 4 ---- 1 file changed, 4 deletions(-) diff --git a/CMake/cotire.cmake b/CMake/cotire.cmake index 22e29f9..69e9a67 100644 --- a/CMake/cotire.cmake +++ b/CMake/cotire.cmake @@ -2587,10 +2587,6 @@ function (cotire_compute_unity_max_number_of_includes _target _maxIncludesVar) endif() list (LENGTH _sourceFiles _numberOfSources) math (EXPR _maxIncludes "(${_numberOfSources} + ${_numberOfThreads} - 1) / ${_numberOfThreads}") - # a unity source segment must not contain less than COTIRE_MINIMUM_NUMBER_OF_TARGET_SOURCES files - if (_maxIncludes LESS ${COTIRE_MINIMUM_NUMBER_OF_TARGET_SOURCES}) - set (_maxIncludes ${COTIRE_MINIMUM_NUMBER_OF_TARGET_SOURCES}) - endif() elseif (NOT _maxIncludes MATCHES "[0-9]+") set (_maxIncludes 0) endif()