mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-19 07:39:07 +08:00
EKF: add check for existence of matrix submodule
This commit is contained in:
parent
64a7b14171
commit
a40eb7cf37
@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.8)
|
||||
|
||||
project (ECL CXX)
|
||||
set(CMAKE_BUILD_TYPE Release)
|
||||
set(CMAKE_CURRENT_SOURCE_DIR EKF)
|
||||
set(CMAKE_CURRENT_SOURCE_DIR ./)
|
||||
set(CMAKE_CXX_FLAGS "-DPOSIX_SHARED")
|
||||
set (EIGEN3_INCLUDE_DIR "/usr/local/include/eigen3/")
|
||||
|
||||
@ -11,6 +11,12 @@ IF( NOT EIGEN3_INCLUDE_DIR )
|
||||
ENDIF()
|
||||
INCLUDE_DIRECTORIES ( "${EIGEN3_INCLUDE_DIR}" )
|
||||
|
||||
if( NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/../matrix/.git" )
|
||||
message( SEND_ERROR "The git submodules are not available. Please run
|
||||
git submodule update --init --recursive"
|
||||
)
|
||||
endif()
|
||||
|
||||
include_directories(
|
||||
./
|
||||
../
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user