[CMake] C/CXX compilation conflict ( /TC /TP )

Jan Woetzel jw at woetzelweb.de
Mon Jun 5 15:33:23 EDT 2006


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 ?

Jan.

-- 

  Dipl.-Ing. Jan Woetzel
--------------------------------------------------
  University of Kiel
  Institute of Computer Science and Applied Mathematics
  Hermann-Rodewald-Str. 3 [room 310]
  24098 Kiel/Germany
--------------------------------------------------
  Phone +49-431-880-4477
  Fax   +49-431-880-4054
  Mob.  +49-179-2937346
--------------------------------------------------
  Url   www.mip.informatik.uni-kiel.de/~jw
  Email jw at mip.informatik.uni-kiel.de


-- 

  Dipl.-Ing. Jan Woetzel
--------------------------------------------------
  Uni Kiel
  Institut f. Informatik und Praktische Mathematik
  Hermann-Rodewaldstr. 3  [Raum 310]
  24098 Kiel/Germany
--------------------------------------------------
  Tel    +49-431-880-4477
  Fax    +49-431-880-4054
  Privat +49-431-802872
  Mob.   +49-179-2937346
--------------------------------------------------
  Url    www.mip.informatik.uni-kiel.de/~jw
  Email  jw at mip.informatik.uni-kiel.de
  Privat jw at WoetzelWeb.de

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20060605/322f3bd9/attachment.html


More information about the CMake mailing list