Hi, <br>With speedy advice from Bill Hoffman I have found the problem: <br>(as most of the times it was in a chair in front of my computer :).<br><br>&nbsp;add_definitions(-DPOSIX -DIA32)&nbsp; were indeed embedded in my own code ). <br>
<br>Issue resolved,<br><br>Thanks for attention to this matter. <br><br>Michael. <br><br><br><div class="gmail_quote">On Thu, Apr 10, 2008 at 11:30 AM, Bill Hoffman &lt;<a href="mailto:bill.hoffman@kitware.com">bill.hoffman@kitware.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">Michael Andronov wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi,<br>
Let me explain my question briefly:<br>
<br>
1. I&#39;m trying to write the CMakeLists.txt, which will generate a proper project for Visual Studio .net.<br>
2. Within my CMakeLists.txt, I set the variable:<br>
 &nbsp; SET (COMPILE_FLAGS &quot;/W3 /nologo /c /Wp64 /ZI /Gd /TP &quot;)<br>
3. My expectation is that above variable will be &#39;translated&#39; into compiler flags within Visual Studio;<br>
4. However, the actual flags ( PreprocessorDefinitions) contains some additional options like:<br>
 &nbsp; &nbsp;POSIX,IA32,DEBUG<br>
</blockquote>
<br></div>
These are not defaults from CMake, you must have add_definitions(-DPOSIX -DIA32) in your project somewhere.<br>
<br>
COMPILE_FLAGS is also not a standard cmake variable for setting flags. Perhaps you could try a smaller example or post and example that shows the problem. &nbsp;For example, what do you get with something really simple:<br>
<br>
project(foo)<br>
add_library(foo foo.c)<br>
<br>
<br>
<br>
-Bill<br>
_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org" target="_blank">CMake@cmake.org</a><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br>