В режиме отладки по умолчанию включены предкомпилированные заголовки

This commit is contained in:
Andrei Astafev 2021-07-22 15:39:51 +03:00
parent 5708fcd5e4
commit a2ae14a6e8

View File

@ -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()