Hello, we want to use the Visual Studio IDE with the Intel C++ compiler. The Intel compiler integrates neatly with the IDE, you right click on a project or solution and select "use Intel C++" or "use Visual C++" to switch between compilers. I have added the following option to our CMake file:
option( INTEL_COMPILER "Use the Intel compiler." ON ) Currently I use this flag to decide which set of boost libraries to link to. I also want to use this flag to tell the IDE which compiler to use however I cannot find a way to do this. It is not nice to have to remember to manually switch to the Intel compiler after running CMake, especially as this does a clean of your solution. Does anyone know please a way to get CMake to tell Visual Studio which complier to use? Note when you select the Intel complier for a particular project in the IDE a "<PlatformToolset>Intel C++ Compiler XE 13.0</PlatformToolset>" get added to the "PropertyGroup" sections of the project's .vcxproj file. Thank you, John W E-mail confidentiality. -------------------------------- This e-mail contains confidential and / or privileged information belonging to Spirent Communications plc, its affiliates and / or subsidiaries. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution and / or the taking of any action based upon reliance on the contents of this transmission is strictly forbidden. If you have received this message in error please notify the sender by return e-mail and delete it from your system. Spirent Communications plc Northwood Park, Gatwick Road, Crawley, West Sussex, RH10 9XN, United Kingdom. Tel No. +44 (0) 1293 767676 Fax No. +44 (0) 1293 767677 Registered in England Number 470893 Registered at Northwood Park, Gatwick Road, Crawley, West Sussex, RH10 9XN, United Kingdom. Or if within the US, Spirent Communications, 26750 Agoura Road, Calabasas, CA, 91302, USA. Tel No. 1-818-676- 2300
-- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake