mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-13 03:19:58 +03:00
Fix tests
This commit is contained in:
parent
900cf60ce3
commit
1af0e6116b
2 changed files with 5 additions and 5 deletions
|
@ -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()
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue