Try just "cd" -- cd . does not give any output at all, it's just a no-op... cd without any arguments prints the current working directory just like pwd...<br><br><br><br><br><div class="gmail_quote">On Fri, Jun 27, 2008 at 9:20 AM, Bill Hoffman <<a href="mailto:bill.hoffman@kitware.com">bill.hoffman@kitware.com</a>> 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">Martin Apel wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Bill Hoffman wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Martin Apel wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Brad,<br>
<br>
this is kind of difficult under Windows, as far as I know. I have MSys installed on my machine, but the pwd "command" is not really a command (i.e. .exe) under MSys, but a shell script, which invokes<br>
the shell command "pwd". Windows sees the file with the "pwd" command in C:\MSys\bin as an ordinary file, not an executable. So I cannot call this from within ADD_CUSTOM_COMMAND. As I am no Windows expert, I haven't found any other way. Can you recommend a way, how to do this?<br>
<br>
</blockquote>
<br>
cd .<br>
</blockquote>
Hi Bill,<br>
<br>
this doesn't result in any output at all:<br>
ADD_CUSTOM_COMMAND (COMMAND cd .<br>
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})<br>
<br>
I think "cd ." cannot work, because there is no cd.exe under Windows. I even tried "C:/WINNT/System32/cmd.exe /C cd .", but this didn't work either.<br>
<br>
</blockquote>
<br></div>
It does work. The output is going to be in that html file that visual studio creates when it does the build. I think you have to cntrl-click to see it.<br><font color="#888888">
<br>
-Bill</font><div><div></div><div class="Wj3C7c"><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>
</div></div></blockquote></div><br>