Re: [CMake] How to choose different complier?

2010-10-18 Thread 董隆超
At 2010-10-18 17:30:01,"Eric Noulard" wrote: >2010/10/18 董隆超 : >> Hi,everybody >> >> I am new to CMake and I have a question. >> I think CMake choose complier based on the file name.If it is ".cpp",CMake >> will use g++, if it is ".c",gcc will be used.Is it right?So to switch >> between g++

Re: [CMake] How to choose different complier?

2010-10-18 Thread Eric Noulard
2010/10/18 董隆超 : > Hi,everybody > > I am new to CMake and I have a question. > I think CMake choose complier based on the file name.If it is ".cpp",CMake > will use g++, if it is ".c",gcc will be used.Is it right?So to switch > between g++ and gcc,I have to change the file name every time.I know th

[CMake] How to choose different complier?

2010-10-18 Thread 董隆超
Hi,everybody I am new to CMake and I have a question. I think CMake choose complier based on the file name.If it is ".cpp",CMake will use g++, if it is ".c",gcc will be used.Is it right?So to switch between g++ and gcc,I have to change the file name every time.I know this is very stupid,but I r