UCL / GreatCMakeCookOff

Bunch of CMake pain in the baker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support for cmake's builtin feature detection with Intel compilers

garymacindoe opened this issue · comments

CMake has its own built-in detection for C and C++ standards which can be used by specifying target_compile_features(myexe ...) for each target executable/library with a list of features required from a list of known C features or known C++ features.

This requires CMake to know which compilers require which flags to activate which features. Currently CMake 3.4 has feature support for AppleClang, Clang, GNU, MSVC and SunPro compilers.

I have been using a standalone IntelCompileFeatures.cmake file which adds this support for Intel Compilers.