Just to be explicit, CC and CXX are shell variables that CMake reads. So invoke like below to make for sure they are getting set correctly:
export CC=icc; export CXX=icc; cmake <args> Caleb On Sunday, May 10, 2015, Rahul K Soni <ra...@ismu.ac.in <javascript:_e(%7B%7D,'cvml','ra...@ismu.ac.in');>> wrote: > When I run like that it says CC=icc command not found. > > -- > Rahul Kumar Soni > Scientist > CSIR-IMMT > > Sent from iPad Rahul > > > On Sun, May 10, 2015 at 11:06 PM, Tom Kacvinsky < > tom.kacvin...@vectorcast.com> wrote: > >> >> >> >> >> > On May 10, 2015, at 13:16, Rahul K Soni <ra...@ismu.ac.in> wrote: >> > >> > 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. >> >> Shoot, I had top posted. Yes, you need to delete the bus directory as >> cmake caches settings after the initial run. Once the build directory is >> deleted, you need to run cmake as follows: >> >> CC=icc CXX=icpc cmake <options> >> >> > -- Sent from my iPhone 4s
-- 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