myx-cmake/MyxCMake/modules/MyxCMakeUnityBuild.cmake

9 lines
232 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_UNITY_BUILD "Enable unity build" OFF)
endif()
else()
option(MYX_CMAKE_UNITY_BUILD "Enable unity build" OFF)
endif()