Skip to content
Snippets Groups Projects
Commit f44636f1 authored by Raphael Grimm's avatar Raphael Grimm
Browse files

Use env var CMAKE_UNITY_BUILD_BATCH_SIZE to determine unity build

parent ba51cccd
No related branches found
No related tags found
No related merge requests found
......@@ -18,9 +18,10 @@ endif()
#global config
# Set up build type
if(${CMAKE_VERSION} VERSION_GREATER 3.16)
if(NOT "$ENV{CMAKE_UNITY_BUILD_BATCH_SIZE}" STREQUAL "")
message(STATUS "CMAKE_UNITY_BUILD_BATCH_SIZE -> $ENV{CMAKE_UNITY_BUILD_BATCH_SIZE}")
set(CMAKE_UNITY_BUILD ON)
set(CMAKE_UNITY_BUILD_BATCH_SIZE 0)
set(CMAKE_UNITY_BUILD_BATCH_SIZE $ENV{CMAKE_UNITY_BUILD_BATCH_SIZE})
endif()
IF(NOT CMAKE_BUILD_TYPE)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment