Limit CMake object file path length under Windows to fix building natively e.g. under MSYS2. Thx to @raphaelcoeffic for the tip: https://cmake.org/cmake/help/latest/variable/CMAKE_OBJECT_PATH_MAX.html

This commit is contained in:
rotorman
2022-12-11 15:01:18 +01:00
parent d417404187
commit 1bf415544f
3 changed files with 9 additions and 0 deletions
+4
View File
@@ -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()
+1
View File
@@ -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)
+4
View File
@@ -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()