cmlib/CMLibCotire.cmake

11 lines
343 B
CMake

include(cotire OPTIONAL)
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()
option(CMLIB_COTIRE_ADD_UNITY_BUILD "Enable unity build" OFF)
endif()