<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Peter K&uuml;mmel wrote:
<blockquote cite="mid44889828.7070201@gmx.net" type="cite">
  <blockquote type="cite">
    <blockquote type="cite">
      <blockquote type="cite">
        <pre wrap="">SET_SOURCE_FILES_PROPERTIES( ${FN2}  PROPERTIES COMPILE_FLAGS
        </pre>
      </blockquote>
    </blockquote>
    <pre wrap="">By the way,
ADD_DEFINTIONS has another bug in Visual Studio 7.1 generator,
see my bug report 3354

Example:
ADD_DEFINTIONS( -foo )
adds
/D "-foo"
instead of
-foo

Still talking about cmake 2.4.2 on Windows with MSVS .net 2003 generator.
    </pre>
  </blockquote>
  <pre wrap=""><!---->As I understand it ADD_DEFINTIONS is only for macro definitions and
not for flags in general.
  </pre>
</blockquote>
(1) The 2.4.2 docu states: <br>
<tt>"Adds flags to command line of C and C++ compilers. This command
can be
used to add any flag to a compile line, but the -D flag is accepted
most C/C++ compilers. Other flags may not be as portable."</tt><br>
<br>
(2) It works as expecetd with gnu makefils generators (Linux gnu make
and windows nmake), only MSVS 2003 generator adds the extra /D and
quotes in front. <br>
<br>
<br>
<blockquote cite="mid44889828.7070201@gmx.net" type="cite">
  <pre wrap="">SET(CMAKE_CXX_FLAGS_DEBUG "-wd4996 -wd4800")
  </pre>
</blockquote>
I think that does not work with different flags for each subdirectory -
but I will try. <br>
<br>
Jan.<br>
<pre class="moz-signature" cols="72">-- 

  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   <a class="moz-txt-link-abbreviated" href="http://www.mip.informatik.uni-kiel.de/~jw">www.mip.informatik.uni-kiel.de/~jw</a>
  Email <a class="moz-txt-link-abbreviated" href="mailto:jw@mip.informatik.uni-kiel.de">jw@mip.informatik.uni-kiel.de</a>
</pre>
</body>
</html>