fix: move firmware compiler version check down (#5745)
This commit is contained in:
@@ -115,9 +115,6 @@ endif()
|
||||
|
||||
if(ARCH STREQUAL ARM)
|
||||
include(targets/common/arm/CMakeLists.txt)
|
||||
if(NOT CMAKE_CXX_COMPILER_VERSION VERSION_EQUAL "14.2.1")
|
||||
message(WARNING "Only Arm GNU Toolchain version 14.2.rel1 is supported")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
include_directories(targets/${TARGET_DIR} ${THIRDPARTY_DIR})
|
||||
@@ -483,6 +480,11 @@ if(NATIVE_BUILD)
|
||||
return()
|
||||
endif()
|
||||
|
||||
if(NOT CMAKE_CXX_COMPILER_VERSION VERSION_EQUAL "14.2.1")
|
||||
message(WARNING "Only Arm GNU Toolchain version 14.2.rel1 is supported")
|
||||
message("CPP Compiler: ${CMAKE_CXX_COMPILER}, version ${CMAKE_CXX_COMPILER_VERSION}")
|
||||
endif()
|
||||
|
||||
set(CMAKE_C_FLAGS "${FIRMWARE_C_FLAGS}")
|
||||
set(CMAKE_C_FLAGS_DEBUG "${FIRMWARE_C_FLAGS_DEBUG}")
|
||||
set(CMAKE_C_FLAGS_RELEASE "${FIRMWARE_C_FLAGS}")
|
||||
|
||||
Reference in New Issue
Block a user