Because I would need to run the test using ctest, and the test cases
have hard-coded and relative paths configured. If i do an out-of-source
build. Some test cases would fail. <br>I am also building the project
on windows Visual studio, which does not have the problem with
in-the-source. it will put object files in different folders
(release/debug).<br>
Therefore, I don't know why it won't work in that way on Linux.<br><br>Thanks and regards,<br><font color="#888888"><br>Charlie </font><br><br><div class="gmail_quote">On Wed, Jun 17, 2009 at 11:39 AM, Bill Hoffman <span dir="ltr"><<a href="mailto:bill.hoffman@kitware.com">bill.hoffman@kitware.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><div></div><div class="h5">Charlie Sun 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,<br>
I'm trying to do a linux build with both release and debug mode. In stead of builing out of source as indicated on the FAQ 4.15, I really need to do in the source build. currently, if I do a release build and then a debug build and then another release build. It will actually rebuild the release and forgets the previous release build. Is it because cmake is only generating one set of objective files when doing in-the-source, either release or debug? Is there a way to have both? Any help is greatly appreciated!<br>
<br>
Regards,<br>
</blockquote>
<br></div></div>
The only way to do what you want is to use out of source builds. Why do you have to do in-source builds?<br><font color="#888888">
<br>
-Bill<br>
</font></blockquote></div><br>