From f48a229f0d52df1e34a7917abf9c6f4555e304e2 Mon Sep 17 00:00:00 2001 From: vitorrussi Date: Mon, 18 Oct 2021 15:28:38 -0300 Subject: [PATCH] fix: examples CMakeLists.txt MDF_PATH defined check --- examples/aliyun_linkkit/get-started/CMakeLists.txt | 2 +- examples/aliyun_linkkit/mesh-with-aliyun/CMakeLists.txt | 2 +- examples/aliyun_linkkit/test/CMakeLists.txt | 2 +- examples/development_kit/buddy/CMakeLists.txt | 2 +- examples/development_kit/button/CMakeLists.txt | 2 +- examples/development_kit/light/CMakeLists.txt | 2 +- examples/development_kit/sense/CMakeLists.txt | 2 +- examples/function_demo/mcommon/CMakeLists.txt | 2 +- examples/function_demo/mconfig/CMakeLists.txt | 2 +- examples/function_demo/mdebug/CMakeLists.txt | 2 +- examples/function_demo/mupgrade/CMakeLists.txt | 2 +- examples/function_demo/mwifi/console_test/CMakeLists.txt | 2 +- examples/function_demo/mwifi/mqtt_example/CMakeLists.txt | 2 +- examples/function_demo/mwifi/no_router/CMakeLists.txt | 2 +- examples/function_demo/mwifi/root_on_ethernet/CMakeLists.txt | 2 +- examples/function_demo/mwifi/router/CMakeLists.txt | 2 +- examples/get-started/CMakeLists.txt | 2 +- examples/wireless_debug/CMakeLists.txt | 2 +- 18 files changed, 18 insertions(+), 18 deletions(-) diff --git a/examples/aliyun_linkkit/get-started/CMakeLists.txt b/examples/aliyun_linkkit/get-started/CMakeLists.txt index 64e9e7ab..d7bf2240 100644 --- a/examples/aliyun_linkkit/get-started/CMakeLists.txt +++ b/examples/aliyun_linkkit/get-started/CMakeLists.txt @@ -2,7 +2,7 @@ # CMakeLists in this exact order for cmake to work correctly cmake_minimum_required(VERSION 3.5) -if(NOT DEFINED $ENV{MDF_PATH}) +if(NOT DEFINED ENV{MDF_PATH}) set(ENV{MDF_PATH} ${CMAKE_CURRENT_LIST_DIR}/../../..) endif() include($ENV{MDF_PATH}/project.cmake) diff --git a/examples/aliyun_linkkit/mesh-with-aliyun/CMakeLists.txt b/examples/aliyun_linkkit/mesh-with-aliyun/CMakeLists.txt index e590b33f..9d028e1e 100644 --- a/examples/aliyun_linkkit/mesh-with-aliyun/CMakeLists.txt +++ b/examples/aliyun_linkkit/mesh-with-aliyun/CMakeLists.txt @@ -2,7 +2,7 @@ # CMakeLists in this exact order for cmake to work correctly cmake_minimum_required(VERSION 3.5) -if(NOT DEFINED $ENV{MDF_PATH}) +if(NOT DEFINED ENV{MDF_PATH}) set(ENV{MDF_PATH} ${CMAKE_CURRENT_LIST_DIR}/../../..) endif() include($ENV{MDF_PATH}/project.cmake) diff --git a/examples/aliyun_linkkit/test/CMakeLists.txt b/examples/aliyun_linkkit/test/CMakeLists.txt index 0fdbf578..ad533c67 100644 --- a/examples/aliyun_linkkit/test/CMakeLists.txt +++ b/examples/aliyun_linkkit/test/CMakeLists.txt @@ -12,7 +12,7 @@ set(EXTRA_COMPONENT_DIRS "../../../components") # set(TEST_COMPONENTS "aliyun_sdk" CACHE STRING "List of components to test") -if(NOT DEFINED $ENV{MDF_PATH}) +if(NOT DEFINED ENV{MDF_PATH}) set(ENV{MDF_PATH} ${CMAKE_CURRENT_LIST_DIR}/../../..) endif() include($ENV{MDF_PATH}/project.cmake) diff --git a/examples/development_kit/buddy/CMakeLists.txt b/examples/development_kit/buddy/CMakeLists.txt index 1fe99ace..9bef6344 100644 --- a/examples/development_kit/buddy/CMakeLists.txt +++ b/examples/development_kit/buddy/CMakeLists.txt @@ -2,7 +2,7 @@ # CMakeLists in this exact order for cmake to work correctly cmake_minimum_required(VERSION 3.5) -if(NOT DEFINED $ENV{MDF_PATH}) +if(NOT DEFINED ENV{MDF_PATH}) set(ENV{MDF_PATH} ${CMAKE_CURRENT_LIST_DIR}/../../..) endif() include($ENV{MDF_PATH}/project.cmake) diff --git a/examples/development_kit/button/CMakeLists.txt b/examples/development_kit/button/CMakeLists.txt index 4bf5cfc0..c46f524a 100644 --- a/examples/development_kit/button/CMakeLists.txt +++ b/examples/development_kit/button/CMakeLists.txt @@ -2,7 +2,7 @@ # CMakeLists in this exact order for cmake to work correctly cmake_minimum_required(VERSION 3.5) -if(NOT DEFINED $ENV{MDF_PATH}) +if(NOT DEFINED ENV{MDF_PATH}) set(ENV{MDF_PATH} ${CMAKE_CURRENT_LIST_DIR}/../../..) endif() include($ENV{MDF_PATH}/project.cmake) diff --git a/examples/development_kit/light/CMakeLists.txt b/examples/development_kit/light/CMakeLists.txt index 1a5fc815..07c4eb08 100644 --- a/examples/development_kit/light/CMakeLists.txt +++ b/examples/development_kit/light/CMakeLists.txt @@ -2,7 +2,7 @@ # CMakeLists in this exact order for cmake to work correctly cmake_minimum_required(VERSION 3.5) -if(NOT DEFINED $ENV{MDF_PATH}) +if(NOT DEFINED ENV{MDF_PATH}) set(ENV{MDF_PATH} ${CMAKE_CURRENT_LIST_DIR}/../../..) endif() include($ENV{MDF_PATH}/project.cmake) diff --git a/examples/development_kit/sense/CMakeLists.txt b/examples/development_kit/sense/CMakeLists.txt index c691720d..a9fee80f 100644 --- a/examples/development_kit/sense/CMakeLists.txt +++ b/examples/development_kit/sense/CMakeLists.txt @@ -2,7 +2,7 @@ # CMakeLists in this exact order for cmake to work correctly cmake_minimum_required(VERSION 3.5) -if(NOT DEFINED $ENV{MDF_PATH}) +if(NOT DEFINED ENV{MDF_PATH}) set(ENV{MDF_PATH} ${CMAKE_CURRENT_LIST_DIR}/../../..) endif() include($ENV{MDF_PATH}/project.cmake) diff --git a/examples/function_demo/mcommon/CMakeLists.txt b/examples/function_demo/mcommon/CMakeLists.txt index b1a87d49..00b8ce98 100644 --- a/examples/function_demo/mcommon/CMakeLists.txt +++ b/examples/function_demo/mcommon/CMakeLists.txt @@ -2,7 +2,7 @@ # CMakeLists in this exact order for cmake to work correctly cmake_minimum_required(VERSION 3.5) -if(NOT DEFINED $ENV{MDF_PATH}) +if(NOT DEFINED ENV{MDF_PATH}) set(ENV{MDF_PATH} ${CMAKE_CURRENT_LIST_DIR}/../../..) endif() include($ENV{MDF_PATH}/project.cmake) diff --git a/examples/function_demo/mconfig/CMakeLists.txt b/examples/function_demo/mconfig/CMakeLists.txt index 95c1b2a4..dcfc9cfc 100644 --- a/examples/function_demo/mconfig/CMakeLists.txt +++ b/examples/function_demo/mconfig/CMakeLists.txt @@ -2,7 +2,7 @@ # CMakeLists in this exact order for cmake to work correctly cmake_minimum_required(VERSION 3.5) -if(NOT DEFINED $ENV{MDF_PATH}) +if(NOT DEFINED ENV{MDF_PATH}) set(ENV{MDF_PATH} ${CMAKE_CURRENT_LIST_DIR}/../../..) endif() include($ENV{MDF_PATH}/project.cmake) diff --git a/examples/function_demo/mdebug/CMakeLists.txt b/examples/function_demo/mdebug/CMakeLists.txt index 136406b7..3b1976a5 100644 --- a/examples/function_demo/mdebug/CMakeLists.txt +++ b/examples/function_demo/mdebug/CMakeLists.txt @@ -2,7 +2,7 @@ # CMakeLists in this exact order for cmake to work correctly cmake_minimum_required(VERSION 3.5) -if(NOT DEFINED $ENV{MDF_PATH}) +if(NOT DEFINED ENV{MDF_PATH}) set(ENV{MDF_PATH} ${CMAKE_CURRENT_LIST_DIR}/../../..) endif() include($ENV{MDF_PATH}/project.cmake) diff --git a/examples/function_demo/mupgrade/CMakeLists.txt b/examples/function_demo/mupgrade/CMakeLists.txt index 34371f34..cfe0c0e9 100644 --- a/examples/function_demo/mupgrade/CMakeLists.txt +++ b/examples/function_demo/mupgrade/CMakeLists.txt @@ -2,7 +2,7 @@ # CMakeLists in this exact order for cmake to work correctly cmake_minimum_required(VERSION 3.5) -if(NOT DEFINED $ENV{MDF_PATH}) +if(NOT DEFINED ENV{MDF_PATH}) set(ENV{MDF_PATH} ${CMAKE_CURRENT_LIST_DIR}/../../..) endif() include($ENV{MDF_PATH}/project.cmake) diff --git a/examples/function_demo/mwifi/console_test/CMakeLists.txt b/examples/function_demo/mwifi/console_test/CMakeLists.txt index 58c648e0..029193ff 100644 --- a/examples/function_demo/mwifi/console_test/CMakeLists.txt +++ b/examples/function_demo/mwifi/console_test/CMakeLists.txt @@ -2,7 +2,7 @@ # CMakeLists in this exact order for cmake to work correctly cmake_minimum_required(VERSION 3.5) -if(NOT DEFINED $ENV{MDF_PATH}) +if(NOT DEFINED ENV{MDF_PATH}) set(ENV{MDF_PATH} ${CMAKE_CURRENT_LIST_DIR}/../../../../) endif() include($ENV{MDF_PATH}/project.cmake) diff --git a/examples/function_demo/mwifi/mqtt_example/CMakeLists.txt b/examples/function_demo/mwifi/mqtt_example/CMakeLists.txt index cfb2fcbe..d42fbc88 100644 --- a/examples/function_demo/mwifi/mqtt_example/CMakeLists.txt +++ b/examples/function_demo/mwifi/mqtt_example/CMakeLists.txt @@ -2,7 +2,7 @@ # CMakeLists in this exact order for cmake to work correctly cmake_minimum_required(VERSION 3.5) -if(NOT DEFINED $ENV{MDF_PATH}) +if(NOT DEFINED ENV{MDF_PATH}) set(ENV{MDF_PATH} ${CMAKE_CURRENT_LIST_DIR}/../../../../) endif() include($ENV{MDF_PATH}/project.cmake) diff --git a/examples/function_demo/mwifi/no_router/CMakeLists.txt b/examples/function_demo/mwifi/no_router/CMakeLists.txt index 291f0710..3f681beb 100644 --- a/examples/function_demo/mwifi/no_router/CMakeLists.txt +++ b/examples/function_demo/mwifi/no_router/CMakeLists.txt @@ -2,7 +2,7 @@ # CMakeLists in this exact order for cmake to work correctly cmake_minimum_required(VERSION 3.5) -if(NOT DEFINED $ENV{MDF_PATH}) +if(NOT DEFINED ENV{MDF_PATH}) set(ENV{MDF_PATH} ${CMAKE_CURRENT_LIST_DIR}/../../../..) endif() include($ENV{MDF_PATH}/project.cmake) diff --git a/examples/function_demo/mwifi/root_on_ethernet/CMakeLists.txt b/examples/function_demo/mwifi/root_on_ethernet/CMakeLists.txt index 944e450a..1ab42bec 100644 --- a/examples/function_demo/mwifi/root_on_ethernet/CMakeLists.txt +++ b/examples/function_demo/mwifi/root_on_ethernet/CMakeLists.txt @@ -2,7 +2,7 @@ # CMakeLists in this exact order for cmake to work correctly cmake_minimum_required(VERSION 3.5) -if(NOT DEFINED $ENV{MDF_PATH}) +if(NOT DEFINED ENV{MDF_PATH}) set(ENV{MDF_PATH} ${CMAKE_CURRENT_LIST_DIR}/../../../..) endif() include($ENV{MDF_PATH}/project.cmake) diff --git a/examples/function_demo/mwifi/router/CMakeLists.txt b/examples/function_demo/mwifi/router/CMakeLists.txt index c923637f..d9b58381 100644 --- a/examples/function_demo/mwifi/router/CMakeLists.txt +++ b/examples/function_demo/mwifi/router/CMakeLists.txt @@ -2,7 +2,7 @@ # CMakeLists in this exact order for cmake to work correctly cmake_minimum_required(VERSION 3.5) -if(NOT DEFINED $ENV{MDF_PATH}) +if(NOT DEFINED ENV{MDF_PATH}) set(ENV{MDF_PATH} ${CMAKE_CURRENT_LIST_DIR}/../../../..) endif() include($ENV{MDF_PATH}/project.cmake) diff --git a/examples/get-started/CMakeLists.txt b/examples/get-started/CMakeLists.txt index f9d84936..b1db74a9 100644 --- a/examples/get-started/CMakeLists.txt +++ b/examples/get-started/CMakeLists.txt @@ -2,7 +2,7 @@ # CMakeLists in this exact order for cmake to work correctly cmake_minimum_required(VERSION 3.5) -if(NOT DEFINED $ENV{MDF_PATH}) +if(NOT DEFINED ENV{MDF_PATH}) set(ENV{MDF_PATH} ${CMAKE_CURRENT_LIST_DIR}/../..) endif() include($ENV{MDF_PATH}/project.cmake) diff --git a/examples/wireless_debug/CMakeLists.txt b/examples/wireless_debug/CMakeLists.txt index 5c7fdbe0..ce8aa990 100644 --- a/examples/wireless_debug/CMakeLists.txt +++ b/examples/wireless_debug/CMakeLists.txt @@ -8,7 +8,7 @@ message(FATAL_ERROR "Adafruit-GFX-Library is not downloaded and run, the followi message(FATAL_ERROR "git clone -b v1.2.3 https://github.com/adafruit/Adafruit-GFX-Library.git components/lcd/Adafruit-GFX-Library") endif() -if(NOT DEFINED $ENV{MDF_PATH}) +if(NOT DEFINED ENV{MDF_PATH}) set(ENV{MDF_PATH} ${CMAKE_CURRENT_LIST_DIR}/../..) endif() include($ENV{MDF_PATH}/project.cmake)