From f6f6b035d6d01e8423569020fcb9ea68658dc5a0 Mon Sep 17 00:00:00 2001 From: Mark Charlebois Date: Sat, 10 Oct 2015 02:19:59 -0700 Subject: [PATCH] Fixed cmake else statements Removed use of if(foo) else(foo) endif(foo) convention of cmake Signed-off-by: Mark Charlebois --- src/firmware/qurt/CMakeLists.txt | 2 +- src/platforms/qurt/px4_layer/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/firmware/qurt/CMakeLists.txt b/src/firmware/qurt/CMakeLists.txt index 3dc12c57f6..b6d743186f 100644 --- a/src/firmware/qurt/CMakeLists.txt +++ b/src/firmware/qurt/CMakeLists.txt @@ -14,7 +14,7 @@ if ("${QURT_ENABLE_STUBS}" STREQUAL "1") add_executable(mainapp ${CMAKE_SOURCE_DIR}/src/platforms/qurt/dspal/dspal_stub.c ${CMAKE_BINARY_DIR}/apps.h) -else("${QURT_ENABLE_STUBS}" STREQUAL "1") +else() add_library(mainapp ${CMAKE_SOURCE_DIR}/src/platforms/qurt/dspal/dspal_stub.c ${CMAKE_BINARY_DIR}/apps.h) diff --git a/src/platforms/qurt/px4_layer/CMakeLists.txt b/src/platforms/qurt/px4_layer/CMakeLists.txt index dcd217c05c..b1b99b63f2 100644 --- a/src/platforms/qurt/px4_layer/CMakeLists.txt +++ b/src/platforms/qurt/px4_layer/CMakeLists.txt @@ -54,7 +54,7 @@ if ("${BOARD}" STREQUAL "eagle") # The CI test target can use the hil commands if ("${LABEL}" STREQUAL "travis") set(CONFIG_SRC commands_hil.c) - else("${LABEL}" STREQUAL "travis") + else() set(CONFIG_SRC commands_${LABEL}.c) endif()