alanxz / SimpleAmqpClient

Simple C++ Interface to rabbitmq-c
MIT License
397 stars 213 forks source link

Incorrect C++ standard #350

Open johnhe4 opened 3 weeks ago

johnhe4 commented 3 weeks ago

Not sure how this is building for everyone else, but on master the CMakeLists.txt is setting the C++ standard to 98:

set(CMAKE_CXX_STANDARD 98)

But any modern installation of boost uses clauses such as noexcept which are C++ 11 or later. I received many compilation issues out-of-the-box because of this. I recommend setting this to 11 to avoid others from stumbling on this, and those that have ancient versions of boost can set it back locally if they care:

set(CMAKE_CXX_STANDARD 11)