Pau Garcia i Quiles wrote:
Hello,
Have you tried PROJECT( myproject CXX ) ?
That will not work.
The only way to make it work now is to use PROPERTIES LANGUAGE CXX on
each file. You can create a feature request if you want.
-Bill
___
Powered by
On Tue, Mar 31, 2009 at 5:53 PM, Alexandre Feblot
wrote:
> Well, I indeed found this to work, but my project has about 2 c files.
Nice ! It this project called GNU/Linux ? ;)
> Alin, forcing CC to a C++ compiler is not an option either, as I also have a
> couple of libs which must be compil
his a bug?
>
>
>
> -Original Message-
> From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of
> Pau Garcia i Quiles
> Sent: Tuesday, 31 March 2009 17:21
> To: Alexandre Feblot
> Cc: Cmake Mailing List
> Subject: Re: [CMake] Compile all .c
Cc: Cmake Mailing List
Subject: Re: [CMake] Compile all .c source files with the CXX compiler
Hello,
Try
SET_SOURCE_FILES_PROPERTIES( file1.c file2.c file3.c PROPERTIES LANGUAGE CXX )
On Tue, Mar 31, 2009 at 5:16 PM, Alexandre Feblot
wrote:
> Hi,
>
> In my project, all sources named .c
Hello,
Try
SET_SOURCE_FILES_PROPERTIES( file1.c file2.c file3.c PROPERTIES LANGUAGE CXX )
On Tue, Mar 31, 2009 at 5:16 PM, Alexandre Feblot
wrote:
> Hi,
>
>
>
> In my project, all sources named .c are C++ files, and should be considered
> as CXX language files.
>
>
>
> I tried to set this with
Hi,
In my project, all sources named .c are C++ files, and should be
considered as CXX language files.
I tried to set this with CMAKE__SOURCE_FILE_EXTENSIONS, at the
very beginning of my project, without success. How should I do it?
cmake_minimum_required (VERSION 2.6)
project(MY_PROJ