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

Levi Morrison morrison.levi at gmail.com
Mon Nov 16 16:45:39 EST 2015


>
> How did you test these?  For full testing we need the CMake test
>> suite to pass with the Intel compilers.  In particular, tests with
>> 'CompileFeatures' in their name cover this functionality.
>
>
> I was able to build and use (or not use as appropriately) C++11 and C++14
> for a given project I already have. What is the proper way to do run the
> test suite for a given compiler?
>

I ran this: CC=icc CXX=icpc ctest -j 12 -R CompileFeatures --verbose

Here is the tail end of the results:

The following tests passed:

CompileFeatures

RunCMake.CompileFeatures


100% tests passed, 0 tests failed out of 2


Total Test time (real) = 1130.73 sec

However, it unclear based on the output if the CC and CXX defines did
anything. Is this the correct way to switch compilers when running the
tests?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20151116/ab65fdcd/attachment-0001.html>


More information about the cmake-developers mailing list