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

Use unity build if cmake is >= 3.16

parent db0c3ac3
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,11 @@ INCLUDE(${Simox_SOURCE_DIR}/CMakeModules/SimoxMacros.cmake)
#global config
# Set up build type
if(${CMAKE_VERSION} VERSION_GREATER 3.16)
set(CMAKE_UNITY_BUILD ON)
set(CMAKE_UNITY_BUILD_BATCH_SIZE 0)
endif()
IF(NOT CMAKE_BUILD_TYPE)
SET_PROPERTY(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release" "MinSizeRel" "RelWithDebInfo")
endif()
......
# This is copied from the bullet sources since the openGL support library is usually not included in any linux packages.
set(CMAKE_UNITY_BUILD OFF)
PROJECT(BulletOpenGLSupport)
if (SimDynamics_USE_BULLET AND OPENGL_FOUND)
......
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