Skip to content

Commit 3d38c8d

Browse files
committed
fix example
1 parent 1f6a2e1 commit 3d38c8d

File tree

2 files changed

+2
-16
lines changed

2 files changed

+2
-16
lines changed

example/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.1)
1+
cmake_minimum_required(VERSION 2.8)
22
project(mqttclient_example)
33

44
set(EXAMPLE_DIRS "emqx" "onenet" "baidu" "ali")
@@ -8,7 +8,7 @@ set(EXAMPLE_DIRS "emqx" "onenet" "baidu" "ali")
88
# #########################
99
if(NOT BUILD_EXAMPLES)
1010
include(${CMAKE_CURRENT_SOURCE_DIR}/mqttclient.cmake)
11-
set(PACKAGE_DEPEND ${WTURS_PACKAGE_LIBS})
11+
set(PACKAGE_DEPEND ${MQTTCLIENT_PACKAGE_LIBS})
1212
endif()
1313

1414
################

example/emqx/CMakeLists.txt

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,3 @@
1-
# aux_source_directory(. DIR_SRCS)
2-
3-
# set(INCDIRS ${CMAKE_CURRENT_SOURCE_DIR})
4-
5-
# add_executable("emqx" ${DIR_SRCS})
6-
7-
# foreach(findlib ${LIBNAMES})
8-
# target_link_libraries("emqx" ${findlib})
9-
# endforeach()
10-
11-
# find_package("Threads")
12-
# target_link_libraries("emqx" ${CMAKE_THREAD_LIBS_INIT})
13-
14-
151
cmake_minimum_required(VERSION 2.8)
162
project(mqttclient_example)
173

0 commit comments

Comments
 (0)