From 99f99df73dc752c7e88916fc1f9df6b9f8c40f8d Mon Sep 17 00:00:00 2001 From: Alexander Widerberg Date: Fri, 19 Jul 2024 09:45:48 +0200 Subject: [PATCH] Fixes #146 (#211) * Fixes #146 --- ios.toolchain.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ios.toolchain.cmake b/ios.toolchain.cmake index cdf7380..a235cd0 100644 --- a/ios.toolchain.cmake +++ b/ios.toolchain.cmake @@ -156,7 +156,8 @@ cmake_minimum_required(VERSION 3.8.0) # CMake invokes the toolchain file twice during the first build, but only once during subsequent rebuilds. -if(DEFINED ENV{_IOS_TOOLCHAIN_HAS_RUN}) +# NOTE: To improve single-library build-times, provide the flag "OS_SINGLE_BUILD" as a build argument. +if(DEFINED OS_SINGLE_BUILD AND DEFINED ENV{_IOS_TOOLCHAIN_HAS_RUN}) return() endif() set(ENV{_IOS_TOOLCHAIN_HAS_RUN} true)