cmlib/CMLibCotire.cmake

11 lines
343 B
CMake
Raw Normal View History

2021-07-22 11:19:50 +00:00
include(cotire OPTIONAL)
2020-04-18 18:06:10 +00:00
if(COMMAND cotire)
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()
2020-04-18 18:06:10 +00:00
option(CMLIB_COTIRE_ADD_UNITY_BUILD "Enable unity build" OFF)
endif()