From cmake Tue Apr 15 09:45:01 2008 From: Philippe Fremy Date: Tue, 15 Apr 2008 09:45:01 +0000 To: cmake Subject: [CMake] VS8.0 CompileAs Message-Id: <4804791D.9070009 () freehackers ! org> X-MARC-Message: https://marc.info/?l=cmake&m=120825274226860 Hi, For one of my project, I need to compile files with .c extension as C++ files. It's an uncommon need but it exists. In Visual Sturio, there is a compiler option, /TP that does exactly this. In Visual Studio 2005 project files, it seems to translate into CompileAs property which can be set to 1 (compile as C), 2 (compile as C++) or 3 (compile as the project defines it). I am using CMake 2.4.8 On the project I generated, the general project property correctly CompileAs="2". However, each file is marked as CompileAs="1", which means that the global option is never applied. Extract from the .vcproj file (simplified): [...] I want the CompileAs of the file to be either "2" (C++) or "3" (inherit from project). Is there anything I can do about this ? thanks in advance, Philippe _______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake