[CMake] Switching configuration to icc

Rahul K Soni rahul at ismu.ac.in
Sun May 10 13:16:44 EDT 2015


Hi Petr




Is deleting the buildsysystem means deleting the CMakeCache.txt file. How to set CC and CXX before configuring. 




Thanks a lot in advance. 



—
Rahul Kumar Soni
ScientistCSIR-IMMT



Sent from iPad Rahul

On Sun, May 10, 2015 at 10:32 PM, Petr Kmoch <petr.kmoch at gmail.com> wrote:

> And you need to do with in a *totally clean* binary directory. The compiler
> cannot be changed once the buildsystem has been configured at least once.
> Simply delete the buildsystem and start over, with the proper CC (and CXX)
> environment variable(s).
> Petr
> On Sun, May 10, 2015 at 7:00 PM, Tom Kacvinsky <tom.kacvinsky at vectorcast.com
>> wrote:
>> You need to set CC before invoking cmake so that cmake will know to use
>> the Intel compilers
>>
>>
>>
>> On May 10, 2015, at 12:57, Rahul K Soni <rahul at ismu.ac.in> wrote:
>>
>> No Tom, thats not working.
>>
>> I did ccmake CC=icc /path/to/vtk
>>
>> But the result is same.
>>
>>>> Rahul Kumar Soni
>> Scientist
>> CSIR-IMMT
>>
>> Sent from iPad Rahul
>>
>>
>> On Sun, May 10, 2015 at 10:04 PM, Tom Kacvinsky <
>> tom.kacvinsky at vectorcast.com> wrote:
>>
>>> CC=icc cmake <options> should do the trick
>>>
>>>
>>>
>>> > On May 10, 2015, at 12:18, Rahul K Soni <rahul at ismu.ac.in> wrote:
>>> >
>>> > Hello everyone
>>> >
>>> > I am trying to configure vtk with cmake-3.2.2 in suse-hpc cluster.
>>> Prefeerred compiler in that cluster is intel. But I don't know why when
>>> Cmake is always configuring things for gcc when it is having icc also.
>>> >
>>> > Please help, how to switch the configuration to icc.
>>> >
>>> > —
>>> > Rahul Kumar Soni
>>> > Scientist
>>> > CSIR-IMMT
>>> >
>>> > Sent from iPad Rahul
>>> > --
>>> >
>>> > Powered by www.kitware.com
>>> >
>>> > Please keep messages on-topic and check the CMake FAQ at:
>>> http://www.cmake.org/Wiki/CMake_FAQ
>>> >
>>> > Kitware offers various services to support the CMake community. For
>>> more information on each offering, please visit:
>>> >
>>> > CMake Support: http://cmake.org/cmake/help/support.html
>>> > CMake Consulting: http://cmake.org/cmake/help/consulting.html
>>> > CMake Training Courses: http://cmake.org/cmake/help/training.html
>>> >
>>> > Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>> >
>>> > Follow this link to subscribe/unsubscribe:
>>> > http://public.kitware.com/mailman/listinfo/cmake
>>>
>>
>>
>> --
>>
>> Powered by www.kitware.com
>>
>> Please keep messages on-topic and check the CMake FAQ at:
>> http://www.cmake.org/Wiki/CMake_FAQ
>>
>> Kitware offers various services to support the CMake community. For more
>> information on each offering, please visit:
>>
>> CMake Support: http://cmake.org/cmake/help/support.html
>> CMake Consulting: http://cmake.org/cmake/help/consulting.html
>> CMake Training Courses: http://cmake.org/cmake/help/training.html
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/cmake
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150510/5c4b57f5/attachment.html>


More information about the CMake mailing list