diff --git a/CMakeLists.txt b/CMakeLists.txt index a3071a9455..6a6eeb660b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -117,6 +117,7 @@ execute_process( OUTPUT_STRIP_TRAILING_WHITESPACE WORKING_DIRECTORY ${PX4_SOURCE_DIR} ) +message(STATUS "PX4 version: ${PX4_GIT_TAG}") define_property(GLOBAL PROPERTY PX4_MODULE_LIBRARIES BRIEF_DOCS "PX4 module libs" @@ -138,79 +139,7 @@ include(px4_add_module) set(config_module_list) set(config_df_driver_list) -# find PX4 config -# look for in tree board config that matches CONFIG input -if(NOT PX4_CONFIG_FILE) - - file(GLOB_RECURSE board_configs - RELATIVE "${PX4_SOURCE_DIR}/boards" - "boards/*.cmake" - ) - - set(PX4_CONFIGS ${board_configs} CACHE STRING "PX4 board configs" FORCE) - - foreach(filename ${board_configs}) - # parse input CONFIG into components to match with existing in tree configs - # the platform prefix (eg nuttx_) is historical, and removed if present - string(REPLACE ".cmake" "" filename_stripped ${filename}) - string(REPLACE "/" ";" config ${filename_stripped}) - list(LENGTH config config_len) - - if(${config_len} EQUAL 3) - - - list(GET config 0 vendor) - list(GET config 1 model) - list(GET config 2 label) - - set(board "${vendor}${model}") - - # __