Skip to content

Commit 7aadf3c

Browse files
authored
Merge pull request #859 from redboltz/fix_858
Fixed #858.
2 parents 58d9354 + 6cb8851 commit 7aadf3c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,10 @@ FIND_PACKAGE (Threads REQUIRED)
130130

131131
IF (MQTT_USE_LOG)
132132
MESSAGE (STATUS "Logging enabled")
133-
FIND_PACKAGE (Boost 1.67.0 REQUIRED COMPONENTS system date_time log filesystem thread program_options)
133+
FIND_PACKAGE (Boost 1.67.0 REQUIRED COMPONENTS system date_time log filesystem thread)
134134
ELSE ()
135135
MESSAGE (STATUS "Logging disabled")
136-
FIND_PACKAGE (Boost 1.67.0 REQUIRED COMPONENTS system date_time program_options)
136+
FIND_PACKAGE (Boost 1.67.0 REQUIRED COMPONENTS system date_time)
137137
ENDIF ()
138138

139139
IF (MQTT_NO_TS_EXECUTORS AND ((Boost_MAJOR_VERSION LESS 1) OR (Boost_MINOR_VERSION LESS 74)))

example/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ LIST (APPEND exec_PROGRAMS
1212
broker.cpp
1313
)
1414

15+
FIND_PACKAGE (Boost 1.67.0 REQUIRED COMPONENTS program_options)
16+
1517
IF (MQTT_USE_TLS)
1618
LIST (APPEND exec_PROGRAMS
1719
tls_client.cpp

0 commit comments

Comments
 (0)