Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cmake with Intel compiler set as platform toolset

I have the Intel compiler platform install on my development machine, when using Cmake to generate a visual studio 2010 solution, I want to be able to specify the platform toolset to be using "Intel" instead of "vc100".

I cant seem to find the setting to change this, when I change the compiler to icl the solution still builds with the vc100 compiler until I manually change the platform toolset.

like image 645
Sharpie Avatar asked Feb 17 '26 13:02

Sharpie


2 Answers

I was looking for similar functionality as well, for setting the Windows SDK 7.1 as the default toolset for a large number of projects, without having to go through and change each one by hand.

I believe that the CMAKE people have added that functionality, and you can use something like:

set_target_properties(${YOUR TARGET} PROPERTIES PLATFORM_TOOLSET "Intel C++ Compiler XE 12.1")

Have a look at:

http://public.kitware.com/Bug/view.php?id=12876

for details of the change.

like image 140
Jon Maguire Avatar answered Feb 19 '26 01:02

Jon Maguire


I was able to change the platform toolset by using a command-line option (CMake 3.2):

cmake . -G "Visual Studio 12" -T "LLVM-vs2013"
like image 29
Stephen Rudolph Avatar answered Feb 19 '26 03:02

Stephen Rudolph



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!