From a2ae14a6e8c903734a819f0dc9a4ced952b01e04 Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Thu, 22 Jul 2021 15:39:51 +0300 Subject: [PATCH] =?UTF-8?q?=D0=92=20=D1=80=D0=B5=D0=B6=D0=B8=D0=BC=D0=B5?= =?UTF-8?q?=20=D0=BE=D1=82=D0=BB=D0=B0=D0=B4=D0=BA=D0=B8=20=D0=BF=D0=BE=20?= =?UTF-8?q?=D1=83=D0=BC=D0=BE=D0=BB=D1=87=D0=B0=D0=BD=D0=B8=D1=8E=20=D0=B2?= =?UTF-8?q?=D0=BA=D0=BB=D1=8E=D1=87=D0=B5=D0=BD=D1=8B=20=D0=BF=D1=80=D0=B5?= =?UTF-8?q?=D0=B4=D0=BA=D0=BE=D0=BC=D0=BF=D0=B8=D0=BB=D0=B8=D1=80=D0=BE?= =?UTF-8?q?=D0=B2=D0=B0=D0=BD=D0=BD=D1=8B=D0=B5=20=D0=B7=D0=B0=D0=B3=D0=BE?= =?UTF-8?q?=D0=BB=D0=BE=D0=B2=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMLibCotire.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMLibCotire.cmake b/CMLibCotire.cmake index af483ce..ed09326 100644 --- a/CMLibCotire.cmake +++ b/CMLibCotire.cmake @@ -1,6 +1,10 @@ include(cotire OPTIONAL) if(COMMAND cotire) - option(CMLIB_COTIRE_ENABLE_PRECOMPILED_HEADER "Enable precompiled headers" OFF) + if(CMAKE_BUILD_TYPE STREQUAL "Debug") + option(CMLIB_COTIRE_ENABLE_PRECOMPILED_HEADER "Enable precompiled headers" ON) + else() + option(CMLIB_COTIRE_ENABLE_PRECOMPILED_HEADER "Enable precompiled headers" OFF) + endif() option(CMLIB_COTIRE_ADD_UNITY_BUILD "Enable unity build" OFF) endif()