Skip to content
This repository has been archived by the owner on Oct 5, 2023. It is now read-only.

Can't compile, Error: invalid numeric argument '/Wextra' #90

Open
AncientGrief opened this issue Jun 20, 2017 · 1 comment
Open

Can't compile, Error: invalid numeric argument '/Wextra' #90

AncientGrief opened this issue Jun 20, 2017 · 1 comment

Comments

@AncientGrief
Copy link

AncientGrief commented Jun 20, 2017

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?!

@ZypherChan
Copy link

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 free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants