[CMake] CMake problem with intel parallel studio 2017

Brad King brad.king at kitware.com
Fri Jun 9 11:01:18 EDT 2017


On 06/08/2017 03:02 PM, Mamales, Petros  via CMake wrote:
> I try to create Visual Studio 2015 (VS2015) solutions with the
> intel c++ compiler from Intel Parallel Studio XE (iPSXE) 2017.
> a)      How does the identification of the toolset proceed? (I used the –T command line option)

It works for me like this:

    >cmake --version
    cmake version 3.9.0-rc2

    >cmake ..\src -G "Visual Studio 14 2015" -A x64 -T "Intel C++ Compiler 17.0"
    -- The C compiler identification is Intel 17.0.0.20160721
    -- Check for working C compiler: C:/Program Files (x86)/Intel/SWTools/compilers_and_libraries_2017/windows/bin/intel64/icl.exe
    -- Check for working C compiler: C:/Program Files (x86)/Intel/SWTools/compilers_and_libraries_2017/windows/bin/intel64/icl.exe -- works

This does *not* need to be run at a command prompt with any special environment
for the compiler.

> 1)      How are these tests really run?

It generates a .vcxproj file with the PlatformToolset field set and then
runs MSBuild.

> 2)      How is the toolset endowed with the necessary include and link/lib directories (within CMake).

MSBuild takes care of this when running the compiler inside its environment.

> 3)      How can I append more of these directories to “help” the compiler identification and/or attributes discovery?

You shouldn't need to do this, and there isn't really a way to do it.

-Brad



More information about the CMake mailing list