On Sunday 10 Jun 2007 8:41:42 pm Brandon Van Every wrote: > On 6/10/07, John Pretz <[EMAIL PROTECTED]> wrote: > > Yes, if I say: PROJECT(projectname CXX) in the source, then it doesn't > > generate a target for my .c files. The resulting makefiles don't even > > try to compile the .c file. > > Hrm, that sucks. I would look in the bug tracker about this. CMake > shouldn't be making draconian assumptions about .c or .C suffixes. > > I'll wager a workaround is to use (PROJECT blah CXX C) and pass a > "compile as C++" flag to the compiler somehow. Lotsa stuff in the > mailing list archives about how to pass compiler flags. I guess if > that workaround works, then the issue is not a showstopper, just > significantly annoying. You should still ping bug tracker so that > people realize the issue does affect people.
Solving this might even solve the case of assembly files. At least with GCC where GCC *can* assemble the file but its not passed as a file to the compiler. Is there a cmake variable to set/get the file extentions supported by the compiler? -- Cheers! kitts _______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
