myx-cmake/MyxCMake/modules/MyxCMakeUnityBuild.cmake

9 lines
232 B
CMake

if(${CMAKE_VERSION} VERSION_LESS "3.16.0")
include(cotire OPTIONAL)
if(COMMAND cotire)
option(MYX_CMAKE_UNITY_BUILD "Enable unity build" OFF)
endif()
else()
option(MYX_CMAKE_UNITY_BUILD "Enable unity build" OFF)
endif()