Issues compiling with GCC 5.4.0
platinum95 opened this issue · comments
platinum95 commented
Was running into some C++14 related issues when compiling with gcc 5.4.0. Seems like -std=c++14
wasn't getting set during the cmake configuration.
Got around the problem by adding set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
to the 2 CMakeLists.
Not sure if this affects any other versions (haven't checked) or if it's even a real issue, just figured I'd post.
Peter Edwards commented
Can you tell me what version of cmake you're using? Is this a stock Linux
distro? If so, which and which version?
…On Wed, 11 Jul 2018, 16:46 platinum95, ***@***.***> wrote:
Was running into some C++14 related issues when compiling with gcc 5.4.0.
Seems like -std=c++14 wasn't getting set during the cmake configuration.
Got around the problem by adding set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}
-std=c++14") to the 2 CMakeLists.
Not sure if this affects any other versions (haven't checked) or if it's
even a real issue, just figured I'd post.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAnmjSBcxRkXUrtGF31FW-576XCOk-zRks5uFg_QgaJpZM4VLSMR>
.
platinum95 commented
Closing since issue was due to cmake 2.8, which was released prior to widespread c++14 support.