Re: [CMake] -DCMAKE_C_COMPILER:string=g++

2007-08-09 Thread Bill Hoffman
Brandon Van Every wrote: On 8/8/07, Alan W. Irwin [EMAIL PROTECTED] wrote: On 2007-08-08 21:52-0400 Bill Hoffman wrote: one of the c files includes a c++ file that is why I need to compile my c files with g++ and not gcc. One of the solution would be to rename my c file cpp or cxx

Re: [CMake] -DCMAKE_C_COMPILER:string=g++

2007-08-09 Thread Alexander Neundorf
On Thursday 09 August 2007 14:14, Brandon Van Every wrote: On 8/8/07, Alan W. Irwin [EMAIL PROTECTED] wrote: On 2007-08-08 21:52-0400 Bill Hoffman wrote: one of the c files includes a c++ file that is why I need to compile my c files with g++ and not gcc. One of the solution would be to

Re: [CMake] -DCMAKE_C_COMPILER:string=g++

2007-08-09 Thread Brandon Van Every
On 8/9/07, Bill Hoffman [EMAIL PROTECTED] wrote: But, when something is fixed in CVS, I sort of consider it fixed. Closing the bugs in the bug tracker when they get fixed might help communication. For instance, I just closed #3776 CMake -E mkdir. Kudos to whomever fixed it, but the bug was not

Re: [CMake] -DCMAKE_C_COMPILER:string=g++

2007-08-09 Thread Brandon Van Every
On 8/9/07, Alexander Neundorf [EMAIL PROTECTED] wrote: On Thursday 09 August 2007 14:14, Brandon Van Every wrote: On 8/8/07, Alan W. Irwin [EMAIL PROTECTED] wrote: On 2007-08-08 21:52-0400 Bill Hoffman wrote: one of the c files includes a c++ file that is why I need to compile my c

Re: [CMake] -DCMAKE_C_COMPILER:string=g++

2007-08-09 Thread Alan W. Irwin
On 2007-08-09 14:28-0400 Bill Hoffman wrote: To fix this (documentation bugs fixed in cvs HEAD but not in CVS branch) I have to move the fix onto the branch. The web pages for the online-docs are automatically generated from the branch. I will get to it. But, when something is fixed in

Re: [CMake] -DCMAKE_C_COMPILER:string=g++

2007-08-08 Thread David Cole
Try moving the quotes like this: cmake .. -DCMAKE_CXX_COMPILER:string=g++ ... On 8/8/07, Marie-Christine Vallet [EMAIL PROTECTED] wrote: Hi, I would like to use g++ as my c compiler (which works) but cmake does not let me do that. Is this normal? Thanks again, Marie cmake

Re: [CMake] -DCMAKE_C_COMPILER:string=g++

2007-08-08 Thread Bill Hoffman
Marie-Christine Vallet wrote: Hi, I would like to use g++ as my c compiler (which works) but cmake does not let me do that. Is this normal? Thanks again, Marie I suspect you want to look at LINKER_LANGUAGE. You really don't want to use g++ for a c compiler. What are you trying to do?

Re: [CMake] -DCMAKE_C_COMPILER:string=g++

2007-08-08 Thread Alexander Neundorf
On Wednesday 08 August 2007 15:04, Marie-Christine Vallet wrote: Hi, I would like to use g++ as my c compiler (which works) but cmake does not let me do that. Is this normal? Yes. This file is used for testing: #ifndef __cplusplus # error The CMAKE_CXX_COMPILER is set to a C compiler #endif

Re: [CMake] -DCMAKE_C_COMPILER:string=g++

2007-08-08 Thread Marie-Christine Vallet
Bill Hoffman wrote: Marie-Christine Vallet wrote: Hi, I would like to use g++ as my c compiler (which works) but cmake does not let me do that. Is this normal? Thanks again, Marie I suspect you want to look at LINKER_LANGUAGE. You really don't want to use g++ for a c compiler. What are

Re: [CMake] -DCMAKE_C_COMPILER:string=g++

2007-08-08 Thread Brandon Van Every
On 8/8/07, Marie-Christine Vallet [EMAIL PROTECTED] wrote: Hi, I would like to use g++ as my c compiler (which works) but cmake does not let me do that. Is this normal? Dunno. But the preferred interface nowadays is to set the LANGUAGE and LINKER_LANGUAGE properties of a file.

Re: [CMake] -DCMAKE_C_COMPILER:string=g++

2007-08-08 Thread Bill Hoffman
Marie-Christine Vallet wrote: Bill Hoffman wrote: Marie-Christine Vallet wrote: Hi, I would like to use g++ as my c compiler (which works) but cmake does not let me do that. Is this normal? Thanks again, Marie I suspect you want to look at LINKER_LANGUAGE. You really don't want to use g++

Re: [CMake] -DCMAKE_C_COMPILER:string=g++

2007-08-08 Thread Alan W. Irwin
On 2007-08-08 21:52-0400 Bill Hoffman wrote: one of the c files includes a c++ file that is why I need to compile my c files with g++ and not gcc. One of the solution would be to rename my c file cpp or cxx thanks, Marie You can also set the language for that .c file to CXX.

RE: [CMake] -DCMAKE_C_COMPILER:string=g++

2007-08-08 Thread Sanchez, Juan
of Bill Hoffman Sent: Wed 8/8/2007 8:52 PM To: Marie-Christine Vallet; cmake Subject: Re: [CMake] -DCMAKE_C_COMPILER:string=g++ Marie-Christine Vallet wrote: Bill Hoffman wrote: Marie-Christine Vallet wrote: Hi, I would like to use g++ as my c compiler (which works) but cmake does not let me do