At 03:33 PM 6/5/2006, Jan Woetzel wrote: >Hi, > >ADD_LIBRARY (foo foo.cpp bar.c) > >compiles "bar.c" with flags /TC /TP options for C *and* CXX on visual studio >.net 2003 with cmake 2.4.2. > >If I remember correctly the behavior in 2.06 was "add one cpp file to a target >and all files are compiled as cpp". > >Do I need some special >SET_SOURCE_FILES_PROPERTIES similar to LINKER_LANGUAGE >or is it simply a bug in cmake ?
This is a bug. If you have a mixed c and c++ target it will use both /TP and /TC. I have checked in a fix. $ cvs commit -m "ENH: fix /TP for c code" cmLocalVisualStudio7Generator.cxx Checking for path: /cvsroot/CMake/CMake/Source Unrestricted user: hoffman /cvsroot/CMake/CMake/Source/cmLocalVisualStudio7Generator.cxx,v <-- cmLocalVis ualStudio7Generator.cxx new revision: 1.135; previous revision: 1.134 The fix will be in 2.4.3. -Bill _______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
