1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-24 16:55:29 +03:00
inav/cmake/host-checks.cmake
Scavanger 61790c157f SITL
2023-01-24 09:47:27 -03:00

10 lines
348 B
CMake

set(gcc_host_req_ver 10)
execute_process(COMMAND ${CMAKE_C_COMPILER} -dumpversion
OUTPUT_STRIP_TRAILING_WHITESPACE
OUTPUT_VARIABLE version)
message("-- found GCC ${version}")
if (NOT gcc_host_req_ver STREQUAL version)
message(FATAL_ERROR "-- expecting GCC version ${gcc_host_req_ver}, but got version ${version} instead")
endif()