myx-cmake/MyxCMake/modules/MyxCMakePrecompiledHeaders.cmake

11 lines
304 B
CMake
Raw Normal View History

2021-12-08 11:32:04 +00:00
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()