<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16640" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN
class=171365210-09052008>Hello,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=171365210-09052008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=171365210-09052008>I am wondering
if anyone can shed some light on where the <ProjectName>_Util projects
come from and why they are constructed for visual studio 2003 when using the
<FONT size=2>ADD_DEPENDENCIES property of CMake. They do not show up when
generating project for other versions of visual studio and do not show up when
using version 2.4.8 of CMake.</FONT></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=171365210-09052008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=171365210-09052008>What I have done is
basically this (pseudo-code, hope it is understandable):</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=171365210-09052008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=171365210-09052008>PROJECT(
FirstProject )</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=171365210-09052008></SPAN></FONT><FONT><SPAN
class=171365210-09052008><FONT face=Arial><FONT
size=2></FONT></FONT></SPAN></FONT> </DIV>
<DIV><FONT><SPAN class=171365210-09052008><FONT face=Arial><FONT
size=2>ADD_SUBDIRECTOR<SPAN class=171365210-09052008>Y( SecondProject ) - adds a
library called SecondProject.<BR></SPAN></FONT></FONT></SPAN></FONT><FONT><SPAN
class=171365210-09052008><FONT><SPAN class=171365210-09052008><FONT
face=Arial><FONT size=2></FONT></FONT></SPAN></FONT></SPAN></FONT></DIV>
<DIV><FONT><SPAN class=171365210-09052008><FONT><SPAN
class=171365210-09052008><FONT face=Arial><FONT size=2>ADD_LIBRARY<SPAN
class=171365210-09052008>( FirstProject
)</SPAN></FONT></FONT></SPAN></FONT></SPAN></FONT></DIV><FONT><SPAN
class=171365210-09052008><FONT><SPAN class=171365210-09052008><FONT
face=Arial><FONT size=2><SPAN class=171365210-09052008>
<DIV><BR></SPAN></FONT></FONT><FONT><SPAN class=171365210-09052008><FONT
face=Arial><FONT size=2>ADD_DEPENDENCIES<SPAN class=171365210-09052008>(
FirstProject SecondProject )</SPAN></FONT></FONT></SPAN></FONT></DIV>
<DIV><FONT><SPAN class=171365210-09052008><FONT face=Arial><FONT size=2><SPAN
class=171365210-09052008></SPAN></FONT></FONT></SPAN></FONT> </DIV>
<DIV><FONT><SPAN class=171365210-09052008><FONT face=Arial><FONT size=2><SPAN
class=171365210-09052008>This will create a solution file with these project in
visual studio 2005 and 2008.</SPAN></FONT></FONT></SPAN></FONT></DIV>
<DIV><FONT><SPAN class=171365210-09052008><FONT face=Arial><FONT size=2><SPAN
class=171365210-09052008></SPAN></FONT></FONT></SPAN></FONT> </DIV>
<DIV><FONT><SPAN class=171365210-09052008><FONT face=Arial><FONT size=2><SPAN
class=171365210-09052008>ALL_BUILD</SPAN></FONT></FONT></SPAN></FONT></DIV>
<DIV><FONT><SPAN class=171365210-09052008><FONT face=Arial><FONT size=2><SPAN
class=171365210-09052008>FirstProject</SPAN></FONT></FONT></SPAN></FONT></DIV>
<DIV><FONT><SPAN class=171365210-09052008><FONT face=Arial><FONT size=2><SPAN
class=171365210-09052008>SecondProject</SPAN></FONT></FONT></SPAN></FONT></DIV>
<DIV><FONT><SPAN class=171365210-09052008><FONT face=Arial><FONT size=2><SPAN
class=171365210-09052008>ZERO_CHECK</SPAN></FONT></FONT></SPAN></FONT></DIV>
<DIV><FONT><SPAN class=171365210-09052008><FONT face=Arial><FONT size=2><SPAN
class=171365210-09052008></SPAN></FONT></FONT></SPAN></FONT> </DIV>
<DIV><FONT><SPAN class=171365210-09052008><FONT face=Arial><FONT size=2><SPAN
class=171365210-09052008>FirstProject depends on SecondProject when checking
dependency setting in visual studio.</SPAN></FONT></FONT></SPAN></FONT></DIV>
<DIV><FONT><SPAN class=171365210-09052008><FONT face=Arial><FONT size=2><SPAN
class=171365210-09052008></SPAN></FONT></FONT></SPAN></FONT> </DIV>
<DIV><FONT><SPAN class=171365210-09052008><FONT face=Arial><FONT size=2><SPAN
class=171365210-09052008>However for visual studio 2003 the solution file will
look like this.</SPAN></FONT></FONT></SPAN></FONT></DIV>
<DIV><FONT><SPAN class=171365210-09052008><FONT face=Arial><FONT size=2><SPAN
class=171365210-09052008></SPAN></FONT></FONT></SPAN></FONT> </DIV>
<DIV><FONT><SPAN class=171365210-09052008><FONT face=Arial><FONT size=2><SPAN
class=171365210-09052008>
<DIV><FONT size=+0><SPAN class=171365210-09052008><FONT face=Arial><FONT
size=2><SPAN
class=171365210-09052008>ALL_BUILD</SPAN></FONT></FONT></SPAN></FONT></DIV>
<DIV><FONT size=+0><SPAN class=171365210-09052008><FONT face=Arial><FONT
size=2><SPAN
class=171365210-09052008>FirstProject</SPAN></FONT></FONT></SPAN></FONT></DIV>
<DIV><FONT size=+0><SPAN class=171365210-09052008><FONT face=Arial><FONT
size=2><SPAN
class=171365210-09052008>SecondProject</SPAN></FONT></FONT></SPAN></FONT></DIV>
<DIV><FONT size=+0><SPAN class=171365210-09052008><FONT face=Arial><FONT
size=2><SPAN
class=171365210-09052008>SecondProject_UTIL</SPAN></FONT></FONT></SPAN></FONT></DIV>
<DIV><FONT size=+0><SPAN class=171365210-09052008><FONT face=Arial><FONT
size=2><SPAN
class=171365210-09052008>ZERO_CHECK</SPAN></FONT></FONT></SPAN></FONT></DIV>
<DIV><FONT size=+0><SPAN class=171365210-09052008><FONT face=Arial><FONT
size=2><SPAN
class=171365210-09052008></SPAN></FONT></FONT></SPAN></FONT> </DIV>
<DIV><FONT size=+0><SPAN class=171365210-09052008><FONT face=Arial><FONT
size=2><SPAN class=171365210-09052008>FirstProject will depend on
SecondProject_UTIL which depends on SecondProject. This will of course give a
lot of linking errors when building. Firstly because the _UTIL project is empty,
neither Pre-Build Events nor Post-Build Events are set. Secondly because the
_UTIL project is never built by
default.</SPAN></FONT></FONT></SPAN></FONT></DIV>
<DIV><FONT size=+0><SPAN class=171365210-09052008><FONT face=Arial><FONT
size=2><SPAN
class=171365210-09052008></SPAN></FONT></FONT></SPAN></FONT> </DIV>
<DIV><FONT size=+0><SPAN class=171365210-09052008><FONT face=Arial><FONT
size=2><SPAN class=171365210-09052008>In order to fix this I have to manually
correct the dependencies for visual studio 2003. Pretty irritating since when
anything is changed in the CMakeLists used for generating the solution file the
dependencies has to be fixed again.</SPAN></FONT></FONT></SPAN></FONT></DIV>
<DIV><FONT size=+0><SPAN class=171365210-09052008><FONT face=Arial><FONT
size=2><SPAN
class=171365210-09052008></SPAN></FONT></FONT></SPAN></FONT> </DIV>
<DIV><FONT size=+0><SPAN class=171365210-09052008><FONT face=Arial><FONT
size=2><SPAN class=171365210-09052008>Every project that some other project is
dependent on generates this extra _UTIL
project.</SPAN></FONT></FONT></SPAN></FONT></DIV>
<DIV><FONT size=+0><SPAN class=171365210-09052008><FONT face=Arial><FONT
size=2><SPAN
class=171365210-09052008></SPAN></FONT></FONT></SPAN></FONT> </DIV>
<DIV><FONT size=+0><SPAN class=171365210-09052008><FONT face=Arial><FONT
size=2><SPAN class=171365210-09052008>Hope anyone can shed some light on the use
of this or have encountered the
problem.</SPAN></FONT></FONT></SPAN></FONT></DIV>
<DIV><FONT size=+0><SPAN class=171365210-09052008><FONT face=Arial><FONT
size=2><SPAN
class=171365210-09052008></SPAN></FONT></FONT></SPAN></FONT> </DIV>
<DIV><FONT size=+0><SPAN class=171365210-09052008><FONT face=Arial><FONT
size=2><SPAN class=171365210-09052008>best regards, appreciate any
help,</SPAN></FONT></FONT></SPAN></FONT></DIV>
<DIV><FONT size=+0><SPAN class=171365210-09052008><FONT face=Arial><FONT
size=2><SPAN
class=171365210-09052008>Markus</SPAN></FONT></FONT></SPAN></FONT></DIV></SPAN></FONT></FONT></DIV></SPAN></FONT></SPAN></FONT></SPAN></FONT></BODY></HTML>