We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cc1plus: error: unrecognized command line option "-std=c++11"
I cannot update gcc on my server. Do you mind amending your code so I and others with older gcc versions will be able to compile your tool please?
This might be a solution
if(CMAKE_COMPILER_IS_GNUCXX) SET(ENABLE_CXX11 "-std=c++11") EXECUTE_PROCESS(COMMAND "${CMAKE_CXX_COMPILER} -dumpversion" OUTPUT_VARIABLE GCC_VERSION) if (GCC_VERSION VERSION_LESS 4.7) SET(ENABLE_CXX11 "-std=c++0x") endif() SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${ENABLE_CXX11}") endif()
https://stackoverflow.com/questions/12715005/add-c0x-support-in-cmake
The text was updated successfully, but these errors were encountered:
No branches or pull requests
cc1plus: error: unrecognized command line option "-std=c++11"
I cannot update gcc on my server. Do you mind amending your code so I and others with older gcc versions will be able to compile your tool please?
This might be a solution
https://stackoverflow.com/questions/12715005/add-c0x-support-in-cmake
The text was updated successfully, but these errors were encountered: