Is there not a more portable way of doing it. I have some *.c files that I need to compile as C++, but it's annoying to have to IF(WIN32 SET_SOURCE_FILE_PROPERTIES( /TP) IF (GCC) SET_SOURCE_FILE_PROPERTIES( ... (can't remember the switches OTOMH) etc. Is there not another LANGUAGE_CXX or something flag. it seems terrible to have to know the flags for every compiler when this should be in the generator? JB -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ben Ratzlaff wrote: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..C is a c++ file name extension.- -- Filipe Sousa -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGAGGcbQdNYqwwwCwRAs3eAKCMpxLOwKZDihUXVOI1Hr4i+KB8HACfXmQV qyiEamYG6dyYL2C5KT+Ve/U= =Mzju -----END PGP SIGNATURE----- _______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake -- John Biddiscombe, email:biddisco @ cscs.ch http://www.cscs.ch/about/BJohn.php CSCS, Swiss National Supercomputing Centre | Tel: +41 (91) 610.82.07 Via Cantonale, 6928 Manno, Switzerland | Fax: +41 (91) 610.82.82 |
_______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake