diff --git a/CMakeLists.txt b/CMakeLists.txt index 9b626a8a7..d134b18e1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,6 +7,10 @@ set(VERSION_MINOR "8") set(VERSION_REVISION "0") set(CODENAME "dev") +if(MINGW OR WIN32) + set(CMAKE_OBJECT_PATH_MAX 200) +endif() + if(DEFINED ENV{EDGETX_VERSION_TAG}) set(VERSION_TAG "$ENV{EDGETX_VERSION_TAG}") else() diff --git a/cmake/toolchain/arm-none-eabi.cmake b/cmake/toolchain/arm-none-eabi.cmake index 7cbf3bf0c..d8c6f0f93 100644 --- a/cmake/toolchain/arm-none-eabi.cmake +++ b/cmake/toolchain/arm-none-eabi.cmake @@ -6,6 +6,7 @@ set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY) if(MINGW OR WIN32) set(EXE_SUFFIX ".exe") + set(CMAKE_OBJECT_PATH_MAX 200) endif() if(ARM_TOOLCHAIN_DIR) diff --git a/cmake/toolchain/native.cmake b/cmake/toolchain/native.cmake index 5627e9484..a6f791ecd 100644 --- a/cmake/toolchain/native.cmake +++ b/cmake/toolchain/native.cmake @@ -4,3 +4,7 @@ if(APPLE) set(CMAKE_C_FLAGS "-Wno-asm-operand-widths -Wno-deprecated-declarations") set(CMAKE_CXX_FLAGS "-Wno-asm-operand-widths -Wno-deprecated-declarations") endif() + +if(MINGW OR WIN32) + set(CMAKE_OBJECT_PATH_MAX 200) +endif()