[cmake-developers] Add CXX_STANDARD support for Intel C++ compilers

Levi Morrison morrison.levi at gmail.com
Tue Nov 17 15:23:05 EST 2015


>
> > I'm not sure how to edit Tests/CompileFeatures/CMakeLists.txt, though.
> > I don't even know what half of this file is trying to accomplish.
> > It seems like it is pure duplication of work; these checks are saying
> > EXPECT_C_STATIC_ASSERT=1 if some compiler conditions are true but
> > I already encoded that information in Intel-CXX-FeatureTests.cmake
>
> It is duplicated because the test memorizes the answers to make sure
> the detection works for known cases.  The EXPECT_... definitions
> encode the expected results for the HAVE_... definitions that are
> set by the $<COMPILE_FEATURES:...> generator expressions.  This
> way the test ensures that the detection works and its results
> propagate all the way through genex evaluation correctly.
>
> > In any case, it seems I still need to update something
>
> Please post the patch so far so we can look at it to see what may be
> missing.  Once this part works then it may activate the real parts
> of the CompileFeatures test and lead you to the portions of that test
> that need to be filled in for the Intel compiler.
>
> Thanks,
> -Brad
>
>
Attached is the patch. I'm unsure if the `&& __INTEL_CXX11_MODE__` parts
are needed. I was hoping I'd find out when running tests.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20151117/d27ed431/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-CXX_STANDARD-support-to-Intel-C-compilers.patch
Type: application/octet-stream
Size: 7520 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20151117/d27ed431/attachment.obj>


More information about the cmake-developers mailing list