Skip to content

Commit

Permalink
CPP Client - Added -std=c++11 flag (apache#605)
Browse files Browse the repository at this point in the history
  • Loading branch information
jai1 authored and merlimat committed Jul 28, 2017
1 parent 380e47e commit c02c5df
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pulsar-client-cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ project (pulsar-cpp)

set(Boost_NO_BOOST_CMAKE ON)

set (CMAKE_CXX_FLAGS "-O3 -g -Wno-deprecated-declarations ${CMAKE_CXX_FLAGS}")
if (NOT CXX_STANDARD)
set(CXX_STANDARD "-std=c++11")
endif(NOT CXX_STANDARD)

set(CMAKE_CXX_FLAGS "-O3 -g -Wno-deprecated-declarations ${CXX_STANDARD} ${CMAKE_CXX_FLAGS}")
set(PROTOBUF_LIBRARIES $ENV{PROTOBUF_LIBRARIES})
set(LOG_CATEGORY_NAME $ENV{LOG_CATEGORY_NAME})

Expand Down

0 comments on commit c02c5df

Please sign in to comment.