<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR></HEAD>
<BODY>
<P><FONT face=Arial><FONT size=2><SPAN class=625012715-31032006></SPAN>On
31/03/2006 15:40:27, William A. Hoffman (billlist@nycap.rr.com)
wrote:</FONT></FONT> <BR><FONT face=Arial size=2>> At 07:33 AM 3/31/2006,
Richard Maunder wrote:</FONT> <BR><FONT face=Arial size=2>> >Yes this was
what I meant - but trying to override CMAKE_CFG_INTDIR</FONT> <BR><FONT
face=Arial size=2>> doesn’t</FONT> <BR><FONT face=Arial size=2>> >seem
to work. I tried:</FONT> <BR><FONT face=Arial size=2>> ></FONT> <BR><FONT
face=Arial size=2>> >SET (CMAKE_CFG_INTDIR "newdir")</FONT> <BR><FONT
face=Arial size=2>> ></FONT> <BR><FONT face=Arial size=2>>
>and</FONT> <BR><FONT face=Arial size=2>> ></FONT> <BR><FONT face=Arial
size=2>> >SET(CMAKE_CFG_INTDIR "newdir" CACHE FILEPATH "Appended build
dir" FORCE)</FONT> <BR><FONT face=Arial size=2>> ></FONT> <BR><FONT
face=Arial size=2>> >Neither of which seem to be alter the VC project. The
output lib path</FONT> <BR><FONT face=Arial size=2>> under</FONT> <BR><FONT
face=Arial size=2>> >VC is shown as$LIBRARY_OUTPUT_PATH\$(OutDir)</FONT>
<BR><FONT face=Arial size=2>> ></FONT> <BR><FONT face=Arial size=2>>
>CMAKE_CFG_INTDIR seems defaulted to "$(OutDir)" - an VS internal</FONT>
<BR><FONT face=Arial size=2>> variable</FONT> <BR><FONT face=Arial
size=2>> >which itself is set by Cmake to "Debug" etc - it appears in the
VC</FONT> <BR><FONT face=Arial size=2>> project</FONT> <BR><FONT face=Arial
size=2>> >as the Output Directory. And this gets collected before any
change</FONT> <BR><FONT face=Arial size=2>> in the</FONT> <BR><FONT
face=Arial size=2>> >Cmake file.</FONT> <BR><FONT face=Arial size=2>>
</FONT><BR><FONT face=Arial size=2>> You can not change
CMAKE_CFG_INTDIR. If you want to create new</FONT> <BR><FONT
face=Arial size=2>> configurations,</FONT> <BR><FONT face=Arial size=2>>
you want to set this one: CMAKE_CONFIGURATION_TYPES. But make sure
you</FONT> <BR><FONT face=Arial size=2>> define CMAKE_C_FLAGS_* where the *
matches all of the names used in</FONT> <BR><FONT face=Arial size=2>>
CMAKE_CONFIGURATION_TYPES.</FONT> <BR><FONT face=Arial size=2>>
</FONT><BR><FONT face=Arial size=2>> -Bill</FONT> </P>
<P><FONT face=Arial><FONT size=2><SPAN class=625012715-31032006>Ok - fair enough
- thanks. In this case a custom copy rule seems the simpliest
solution.</SPAN></FONT></FONT></P>
<P><FONT face=Arial><FONT size=2><SPAN class=625012715-31032006>It seems
somewhat undesirable that you set an output path and then another
(non-configurable) subdir gets appended to it. I would have thought in the cases
where LIBRARY_OUTPUT_PATH or EXECUTABLE_OUTPUT_PATH have been set by the user
they should be respected and not have the CMAKE_CFG_INTDIR<FONT
face="Times New Roman" size=3> added. Just my opinion and probably too late
to change this behaviour though....</FONT></SPAN></FONT></FONT></P>
<P><FONT face=Arial size=2><SPAN
class=625012715-31032006>Thanks</SPAN></FONT></P>
<P><FONT face=Arial size=2><SPAN
class=625012715-31032006>Rick</SPAN></FONT></P></BODY></HTML>