From 5df9455bc7c99e1de2cf89b7e04cbc750ec4f1b8 Mon Sep 17 00:00:00 2001 From: AsiiaPine Date: Tue, 5 Aug 2025 14:02:16 +0300 Subject: [PATCH 1/3] add cmake_file parameter --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7d5d9b8..1d9f242 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,7 +15,11 @@ include(${CMAKE_CURRENT_LIST_DIR}/platform_specific/${CAN_PLATFORM}/config.cmake if(NOT DEFINED LIBPARAMS_PATH) message(SEND_ERROR "LIBPARAMS_PATH is not specified!") endif() -include(${LIBPARAMS_PATH}/CMakeLists.txt) +if(NOT DEFINED LIBPARAMS_CMAKE) + message(SEND_ERROR "LIBPARAMS_CMAKE is not specified!") + set(LIBPARAMS_CMAKE CMakeLists.txt) +endif() +include(${LIBPARAMS_PATH}/${LIBPARAMS_CMAKE}) set(DRONECAN_SOURCES ${DRONECAN_PLATFORM_SOURCES} From 89418c2fca3586ba5ef4cad69d14bcc6aeb60a9a Mon Sep 17 00:00:00 2001 From: AsiiaPine Date: Tue, 5 Aug 2025 16:34:10 +0300 Subject: [PATCH 2/3] add description for LIBPARAMS_CMAKE absense error --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1d9f242..25d727f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,7 +16,7 @@ if(NOT DEFINED LIBPARAMS_PATH) message(SEND_ERROR "LIBPARAMS_PATH is not specified!") endif() if(NOT DEFINED LIBPARAMS_CMAKE) - message(SEND_ERROR "LIBPARAMS_CMAKE is not specified!") + message(SEND_ERROR "LIBPARAMS_CMAKE is not specified! Use default value 'CMakeLists.txt'.") set(LIBPARAMS_CMAKE CMakeLists.txt) endif() include(${LIBPARAMS_PATH}/${LIBPARAMS_CMAKE}) From 166929069fd21815e8af13dc7e4e2c4ec034a0d6 Mon Sep 17 00:00:00 2001 From: AsiiaPine Date: Tue, 5 Aug 2025 16:35:25 +0300 Subject: [PATCH 3/3] change error to warning --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 25d727f..cf35f0f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,7 +16,7 @@ if(NOT DEFINED LIBPARAMS_PATH) message(SEND_ERROR "LIBPARAMS_PATH is not specified!") endif() if(NOT DEFINED LIBPARAMS_CMAKE) - message(SEND_ERROR "LIBPARAMS_CMAKE is not specified! Use default value 'CMakeLists.txt'.") + message(SEND_WARNING "LIBPARAMS_CMAKE is not specified! Use default value 'CMakeLists.txt'.") set(LIBPARAMS_CMAKE CMakeLists.txt) endif() include(${LIBPARAMS_PATH}/${LIBPARAMS_CMAKE})