CMake: add warning for WITH_UNITY_BUILD

This commit is contained in:
Campbell Barton 2023-08-11 09:34:07 +10:00
parent 465810dd52
commit 87c61f2354
1 changed files with 3 additions and 1 deletions

View File

@ -252,7 +252,9 @@ mark_as_advanced(BUILDINFO_OVERRIDE_TIME)
if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.16")
option(WITH_UNITY_BUILD "\
Enable unity build for modules that support it to improve compile times"
Enable unity build for modules that support it to improve compile times.\n\
WARNING: this option allows files to be built without all necessary headers!\n
This option should be disabled before manipulating or removing headers."
ON
)
mark_as_advanced(WITH_UNITY_BUILD)