<div class="gmail_quote">On Tue, Oct 6, 2009 at 9:16 PM, Philip Lowman <span dir="ltr"><<a href="mailto:philip@yhbt.com">philip@yhbt.com</a>></span> 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="gmail_quote"><div><div></div><div class="h5">On Tue, Oct 6, 2009 at 12:49 PM, Philip Lowman <span dir="ltr"><<a href="mailto:philip@yhbt.com" target="_blank">philip@yhbt.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I'm trying to do the following but CMake treats each space in a filename<br>
as a separate flag:<br>
<br>
set(sxsoverride "${CMAKE_CURRENT_SOURCE_DIR}/target_sxs.h")<br>
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /FI ${sxsoverride}"<br>
<br>
It fails if there are spaces in the path as CMake seems to expand the<br>
entry. Anyone have any ideas? Seems buggy to me:<br>
<br>
Cmtrycompile CMakeError.log:<br>
<br>
... /FI "C:/Documents" /FI "and" ...<br>
(etc.)<br></blockquote></div></div><div><br>Of course now that I try this at home, I can't replicate my own problem... <br></div></div></blockquote><div><br>Found it! I guess not a lot of people add quotes to CMAKE_C_FLAGS (due to spaces in a path) and then run compile tests. Patch attached to bugtracker.<br>
<a href="http://public.kitware.com/Bug/view.php?id=9670">http://public.kitware.com/Bug/view.php?id=9670</a> <br><br>Also, for any that are curious, I'm using /FI to workaround this *very* annoying Microsoft problem that anyone using Visual Studio 2005 should probably be made aware of, if they aren't already:<br>
<br><a href="http://www.dotnetmonster.com/Uwe/Forum.aspx/dotnet-vc/11078/Breaking-change-in-MS-DLL-s">http://www.dotnetmonster.com/Uwe/Forum.aspx/dotnet-vc/11078/Breaking-change-in-MS-DLL-s</a><br><br>"/FI" workaround documented here:<br>
<a href="http://tedwvc.wordpress.com/2009/08/10/avoiding-problems-with-vc2005-sp1-security-update-kb971090/">http://tedwvc.wordpress.com/2009/08/10/avoiding-problems-with-vc2005-sp1-security-update-kb971090/</a><br><br></div>
</div>-- <br>Philip Lowman<br>