* FIX [cmake] fix build nanomq_cli with zeromq
@@ -25,7 +25,8 @@ endif(BUILD_QUIC_CLI)
add_dependencies(nanomq_cli nng)
if(BUILD_ZMQ_GATEWAY)
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -lstdc++")
+ set(CMAKE_CXX_STANDARD 11)
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -lstdc++")
find_package(ZeroMQ REQUIRED)
include_directories("${ZeroMQ_INCLUDE_DIR}")
target_link_libraries(nanomq_cli zmq)
