[CMake] CMake does not take gcc34 as its compiler
Kishore, Jonnalagadda (IE10)
Kishore.Jonnalagadda at honeywell.com
Thu Apr 19 13:11:49 EDT 2007
> -----Original Message-----
> From: cmake-bounces+kishore.jonnalagadda=honeywell.com at cmake.org
> [mailto:cmake-bounces+kishore.jonnalagadda=honeywell.com at cmake.org] On
> Behalf Of Ajay Divekar
> Sent: Thursday, April 19, 2007 10:04 PM
> To: cmake at 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
More information about the CMake
mailing list