mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
mavsdk_tests: MAVSDK is required
Without the library installed, we can't build and run the tests. Silently ignoring this just leads to confusion.
This commit is contained in:
@@ -6,7 +6,7 @@ set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||
|
||||
find_package(MAVSDK QUIET)
|
||||
find_package(MAVSDK REQUIRED)
|
||||
|
||||
if(MAVSDK_FOUND)
|
||||
add_executable(mavsdk_tests
|
||||
|
||||
Reference in New Issue
Block a user