mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 11:06:04 +08:00
Removed extra returns
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
committed by
Julian Oes
parent
473fe773b4
commit
f25613ebeb
@@ -36,15 +36,13 @@ set(CMAKE_SYSTEM_NAME Generic)
|
|||||||
set(CMAKE_SYSTEM_VERSION 1)
|
set(CMAKE_SYSTEM_VERSION 1)
|
||||||
|
|
||||||
# specify the cross compiler
|
# specify the cross compiler
|
||||||
find_program(C_COMPILER arm-linux-gnueabihf-gcc
|
find_program(C_COMPILER arm-linux-gnueabihf-gcc)
|
||||||
)
|
|
||||||
if(NOT C_COMPILER)
|
if(NOT C_COMPILER)
|
||||||
message(FATAL_ERROR "could not find arm-linux-gnueabihf-gcc compiler")
|
message(FATAL_ERROR "could not find arm-linux-gnueabihf-gcc compiler")
|
||||||
endif()
|
endif()
|
||||||
cmake_force_c_compiler(${C_COMPILER} GNU)
|
cmake_force_c_compiler(${C_COMPILER} GNU)
|
||||||
|
|
||||||
find_program(CXX_COMPILER arm-linux-gnueabihf-g++
|
find_program(CXX_COMPILER arm-linux-gnueabihf-g++)
|
||||||
)
|
|
||||||
if(NOT CXX_COMPILER)
|
if(NOT CXX_COMPILER)
|
||||||
message(FATAL_ERROR "could not find arm-linux-gnueabihf-g++ compiler")
|
message(FATAL_ERROR "could not find arm-linux-gnueabihf-g++ compiler")
|
||||||
endif()
|
endif()
|
||||||
@@ -53,8 +51,7 @@ cmake_force_cxx_compiler(${CXX_COMPILER} GNU)
|
|||||||
# compiler tools
|
# compiler tools
|
||||||
foreach(tool objcopy nm ld)
|
foreach(tool objcopy nm ld)
|
||||||
string(TOUPPER ${tool} TOOL)
|
string(TOUPPER ${tool} TOOL)
|
||||||
find_program(${TOOL} arm-linux-gnueabihf-${tool}
|
find_program(${TOOL} arm-linux-gnueabihf-${tool})
|
||||||
)
|
|
||||||
if(NOT ${TOOL})
|
if(NOT ${TOOL})
|
||||||
message(FATAL_ERROR "could not find arm-linux-gnueabihf-${tool}")
|
message(FATAL_ERROR "could not find arm-linux-gnueabihf-${tool}")
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
Reference in New Issue
Block a user