* FIX [zmq] fixed zmq ci error.
cmake_minimum_required(VERSION 3.3)
project(nanomq_cli)
+
if(DEBUG AND ASAN)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -fsanitize=address")
endif(DEBUG AND ASAN)
@@ -25,11 +26,10 @@ endif(BUILD_QUIC_CLI)
add_dependencies(nanomq_cli nng)
if(BUILD_ZMQ_GATEWAY)
- 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)
+ target_link_libraries(nanomq_cli stdc++)
endif(BUILD_ZMQ_GATEWAY)
install(TARGETS nanomq_cli RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
