* FIX [CMakeList]remove CXX compiler request
cmake_minimum_required (VERSION 2.8.8)
SET(CMAKE_C_FLAGS "-std=c99")
-SET(CMAKE_CXX_FLAGS "-std=c++11 -O3")
project(nanomq-nng)
@@ -177,19 +176,15 @@ endif(BUILD_ZMQ_GATEWAY)
if (DEBUG)
message("DEBUG ")
SET(CMAKE_BUILD_TYPE "Debug")
- SET(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -O0 -Wall -g2 -ggdb")
- SET(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O3 -Wall")
add_definitions(-DDEBUG)
if (ASAN)
message("ASAN")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -fsanitize=address")
- SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -fsanitize=address")
add_definitions(-DASAN)
endif (ASAN)
if (TSAN)
message("TSAN")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -fsanitize=thread")
- SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -fsanitize=thread")
add_definitions(-DASAN)
endif (TSAN)
endif(DEBUG)
