diff options
-rw-r--r-- | hicn-light/CMakeLists.txt | 13 | ||||
-rw-r--r-- | hicn-plugin/src/hicn_api_test.c | 5 |
2 files changed, 9 insertions, 9 deletions
diff --git a/hicn-light/CMakeLists.txt b/hicn-light/CMakeLists.txt index 337e22b7f..e82100a91 100644 --- a/hicn-light/CMakeLists.txt +++ b/hicn-light/CMakeLists.txt @@ -23,6 +23,10 @@ project(hicn-light) ############################################################## set(LIBHICN_LIGHT hicn-light) set(LIBHICN_LIGHT_STATIC ${LIBHICN_LIGHT}.static) +set(HICN_LIGHT hicn-light CACHE INTERNAL "" FORCE) +set(HICN_LIGHT_CONTROL ${HICN_LIGHT}-control CACHE INTERNAL "" FORCE) +set(HICN_LIGHT_SHELL ${HICN_LIGHT}-shell CACHE INTERNAL "" FORCE) +set(HICN_LIGHT_DAEMON ${HICN_LIGHT}-daemon CACHE INTERNAL "" FORCE) ############################################################## @@ -50,15 +54,6 @@ set(CMAKE_C_STANDARD_REQUIRED ON) ############################################################## -# Libs and Bins names -############################################################## -set(HICN_LIGHT hicn-light CACHE INTERNAL "" FORCE) -set(HICN_LIGHT_CONTROL ${HICN_LIGHT}-control CACHE INTERNAL "" FORCE) -set(HICN_LIGHT_SHELL ${HICN_LIGHT}-shell CACHE INTERNAL "" FORCE) -set(HICN_LIGHT_DAEMON ${HICN_LIGHT}-daemon CACHE INTERNAL "" FORCE) - - -############################################################## # Dependencies and third party libs ############################################################## find_package(LibEvent ${LIBEVENT_DEFAULT_VERSION} REQUIRED) diff --git a/hicn-plugin/src/hicn_api_test.c b/hicn-plugin/src/hicn_api_test.c index e3b942b7b..3ca48d98a 100644 --- a/hicn-plugin/src/hicn_api_test.c +++ b/hicn-plugin/src/hicn_api_test.c @@ -900,6 +900,11 @@ api_hicn_api_mapme_default_route_get (vat_main_t *vam) } } + if (default_route == 0) + { + return 1; + } + /* Construct the API message */ M (HICN_API_MAPME_DEFAULT_ROUTE_GET, mp); |