-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
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
Add CMAKE_CXX_FLAGS for Intel compiler #465
Conversation
Would those warnings be fixable? Please post them. |
Here's the result of compiling with
|
#474 fixes most of these, but the implicit integer conversions are tough. In all cases, the value definitely fits within the smaller integer, but I don't know how to tell the stupid compiler. If this change turns out to be insufficient, just let us know. We will try to make warnings into errors only for our TravisCI tests. |
The current CMakeLists.txt can't be used with the Intel compiler, because it relies on setting the necessary -std=c++11 switch in a compiler detection block based on
CMAKE_CXX_COMPILER_ID
.The Intel compiler accepts the same warnings options as gcc (see here--link for v.15 of the compiler which is less recent than the current v.16, but as far as I know nothing significant has changed here), so I have copied the same
-W
flags used for gcc.The result compiles and builds correctly, although it gives a number of compatibility and portability warnings that I don't see when compiling with Apple Clang.