myx-cmake/MyxCMake/modules/MyxCMakePrecompiledHeaders.cmake

11 lines
323 B
CMake

# cmake-format: off
if(${CMAKE_VERSION} VERSION_LESS "3.16.0")
include(cotire OPTIONAL)
if(COMMAND cotire)
option(MYX_CMAKE_PRECOMPILED_HEADERS "MyxCMake: enable precompiled headers" OFF)
endif()
else()
option(MYX_CMAKE_PRECOMPILED_HEADERS "MyxCMake: enable precompiled headers" OFF)
endif()
# cmake-format: on