1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-13 11:29:56 +03:00

Fix tests

This commit is contained in:
Scavanger 2023-01-24 23:14:11 -03:00
parent 900cf60ce3
commit 1af0e6116b
2 changed files with 5 additions and 5 deletions

View file

@ -59,11 +59,6 @@ set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_EXTENSIONS ON) set(CMAKE_CXX_EXTENSIONS ON)
set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_program(RUBY_EXECUTABLE ruby)
if (NOT RUBY_EXECUTABLE)
message(FATAL_ERROR "Could not find ruby")
endif()
if(CMAKE_BUILD_TYPE STREQUAL "Release" OR CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo") if(CMAKE_BUILD_TYPE STREQUAL "Release" OR CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")
set(IS_RELEASE_BUILD ON) set(IS_RELEASE_BUILD ON)
endif() endif()

View file

@ -29,6 +29,11 @@ function(enable_settings exe name)
${ARGN} ${ARGN}
) )
find_program(RUBY_EXECUTABLE ruby)
if (NOT RUBY_EXECUTABLE)
message(FATAL_ERROR "Could not find ruby")
endif()
if(host STREQUAL TOOLCHAIN) if(host STREQUAL TOOLCHAIN)
set(USE_HOST_GCC "-g") set(USE_HOST_GCC "-g")
endif() endif()