Fix build failure 59/262359/1
authorSeonah Moon <seonah1.moon@samsung.com>
Mon, 9 Aug 2021 05:02:27 +0000 (14:02 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Mon, 9 Aug 2021 05:02:31 +0000 (14:02 +0900)
Change-Id: I27d0199562a30959074e7a66e5a9a405a7f6d234

src/vine-dp.cpp
tests/vine-test/CMakeLists.txt

index 0d31a63af099d17ed927bafdf305bb112ef5423a..e66715ff468997b660305bf4abccfaea8460d673 100755 (executable)
@@ -1174,7 +1174,7 @@ int DPPubSub::publish_service()
        // The maximum length of topic is 1024.
        // The length of value is at most (VINE_MAX_ATTRIBUTE_LEN(252) - key length(2) - 1 = 249)
        // Therefore, at most five attributes can be added for a topic.
-       VINE_LOGD("Topic[%s] is added as attributes", mTopic);
+       VINE_LOGD("Topic[%s] is added as attributes", mTopic.c_str());
        while (pos < mTopic.size()) {
                std::string val = mTopic.substr(pos, VINE_MAX_ATTRIBUTE_LEN - 1 - 2);
                char key[3];
index 939810308655e93cc397d64994614adb2c202ef2..da8cb8f2b6b050a5e9905b8e785d5cf7cb0459d0 100755 (executable)
@@ -27,7 +27,11 @@ INCLUDE_DIRECTORIES(
 
 FILE(GLOB VINE_TEST_SRCS *.cpp)
 FILE(GLOB VINE_TEST_UTILS_SRC *utils*.cpp)
+FILE(GLOB VINE_TEST_BLE_SRC vine-ble-test.cpp)
 LIST(REMOVE_ITEM VINE_TEST_SRCS ${VINE_TEST_UTILS_SRC})
+IF(NOT BT_SUPPORT)
+LIST(REMOVE_ITEM VINE_TEST_SRCS ${VINE_TEST_BLE_SRC})
+ENDIF()
 
 foreach(file ${VINE_TEST_SRCS})
        GET_FILENAME_COMPONENT(name ${file} NAME_WE)