[CMake] Compile .c as c++ - VS2005

Ben Ratzlaff cmake at daishiva.com
Tue Mar 20 17:29:24 EST 2007


I have found that if I rename my .c files to .C then cmake does not emit the
XML in the .vsproj to change the build mode.

On 3/20/07, Ben Ratzlaff <cmake at daishiva.com> wrote:
>
> It did not work for me
>
> I have also tried:
>     SET (CMAKE_C_SOURCE_FILE_EXTENSIONS "")
>     SET (CMAKE_CXX_SOURCE_FILE_EXTENSIONS
> "c;${CMAKE_CXX_SOURCE_FILE_EXTENSIONS}")
>
>
> On 3/20/07, Filipe Sousa <natros at gmail.com> wrote:
> >
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > Ben Ratzlaff wrote:
> > > When creating a visual studio 2005 project, I need to be able to
> > compile
> > > .c files as a c++ (/FP switch). Is there any way to achieve this
> > outside
> > > of renaming the files?
> >
> > does it work with SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /FP")?
> >
> > - --
> > Filipe Sousa
> >
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.4.6 (GNU/Linux)
> >
> > iD8DBQFGAFtzbQdNYqwwwCwRAldGAJ9JOyNL5IEjLXQ2+tObSu5o8UN61ACeOcw2
> > YZxQBal3/0FA0P+MbQFlQG0=
> > =yVKT
> > -----END PGP SIGNATURE-----
> > _______________________________________________
> > CMake mailing list
> > CMake at cmake.org
> > http://www.cmake.org/mailman/listinfo/cmake
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20070320/18fbf6fa/attachment.html


More information about the CMake mailing list