You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 5, 2023. It is now read-only.
I created a VS 2010 and VS 2015 .sln with CMAKE and tried to compile it. I always get the error: invalid numeric argument '/Werror'.
I tried removing this block from cmake list: if(GCC_OR_CLANG) add_definitions(-D__wur=__attribute__\(\(warn_unused_result\)\) -Wall -Werror -fno-exceptions) endif(GCC_OR_CLANG)
Then I get a whole lot of other errors. What's the problem here?!
The text was updated successfully, but these errors were encountered:
I have the same problem.You can open the sln property setting and C/C++->Commandline->Other Option.Now you can delete '/Werror'.
The final reason is the CMakeLists "set(GCC_OR_CLANG ((CMAKE_CXX_COMPILER_ID MATCHES "Clang") OR CMAKE_COMPILER_IS_GNUCXX))" doesn't work.
Good luck :)
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I created a VS 2010 and VS 2015 .sln with CMAKE and tried to compile it. I always get the error:
invalid numeric argument '/Werror'.
I tried removing this block from cmake list:
if(GCC_OR_CLANG) add_definitions(-D__wur=__attribute__\(\(warn_unused_result\)\) -Wall -Werror -fno-exceptions) endif(GCC_OR_CLANG)
Then I get a whole lot of other errors. What's the problem here?!
The text was updated successfully, but these errors were encountered: