diff --git a/CMakeLists.txt b/CMakeLists.txt index 5a5da30fdd13ae22c1b188f3065d69a1b49cd0ba..02d1eb74eae36493b1d04dcd21fc45493e8e2d1c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -165,6 +165,7 @@ endif() if(MSVC OR WIN32) # for cmake after 3.15.2 cmake_policy(SET CMP0091 NEW) + set(CMAKE_OBJECT_PATH_MAX 300) if(${CMAKE_BUILD_TYPE} STREQUAL "Debug") set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreadedDebug") else()