> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Ajay Divekar > Sent: Thursday, April 19, 2007 10:04 PM > To: cmake@cmake.org > Subject: [CMake] CMake does not take gcc34 as its compiler > > Hello, > > I tried to run cmake using the "cmake -i . " command and said yes to > advanced > options. > > when it asks for -- I enter (in bold characters) > > Variable Name: CMAKE_C_COMPILER > Description: C compiler. > Current Value: /usr/bin/gcc > New Value (Enter to keep current value):/usr/local/bin/gcc34 > > and similarly when it asks for > > Variable Name: CMAKE_CXX_COMPILER > Description: CXX compiler. > Current Value: /usr/bin/c++ > New Value (Enter to keep current value):/usr/local/bin/g++34 > > CMake seems to keep asking me these options again and again and never > finished. I tried to edit CMakeCache.txt file manually but it still uses > gcc > as its compiler and not gcc34. I want to use gcc34 as my compiler which is > not the default compiler in CMake.
AFAIK it is a documented fact the CAMKE_CXX_COMPILER and CMAKE_C_COMPILER special in that they cannot be changed. To use another compiler, set the environment variables for CC and CXX before calling cmake for the very first time. See http://www.cmake.org/Wiki/CMake_Useful_Variables#Compilers_and_Tools Regards, Kishore _______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake