<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Yes that's what I mean, cmake re-runs from the root directory of the
project, for every target in my project.<br>
<br>
Which means when I do a rebuild all in visual studio, every target in
my project re-runs the root CMakeLists.txt, which re-build the whole
visual studio solution. On my quad core, this means 8 cmake run at the
same time, and they all do the same job.<br>
<br>
Currently, when I generate a Visual Studio project from cmake, I have
to manually delete all CMakeLists.txt from every target in order to be
able to use the rebuild all in Visual Stduio.<br>
<br>
So, I was looking for an option to disable it, or override this
behavior.<br>
<br>
I hope this explain it better (I'm still new to cmake).<br>
<br>
Thank you,<br>
Ben.<br>
<br>
On 2010-03-22 04:52, David Cole wrote:
<blockquote
cite="mid:f435c2c51003220152j3ef2b683qb1d1d693ab6a68da@mail.gmail.com"
type="cite">On Fri, Mar 19, 2010 at 5:28 PM, Benoit Thomas <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:benoit.thomas@gameloft.com">benoit.thomas@gameloft.com</a>></span>
wrote:<br>
<div class="gmail_quote">
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello,<br>
<br>
I have the following directory structure<br>
<br>
root<br>
|--- project A<br>
|--- project B<br>
<br>
Project A & B both have their cmakelists.txt file<br>
<br>
Root has a cmakelists.txt file which does add_subdirectory for project
A and B<br>
<br>
When I generate the tree in visual studio, I have a solution with both
projects; and both project A & B have their corresponding
cmakelists.txt added to the project.<br>
<br>
However, the command line for the custom build steps on those files
refer to root/cmakelists.txt and not project A or B/cmakelists.txt<br>
<br>
My problem come when I do a rebuild all, both project A & B tries
to rebuild both projects and it creates other problems; I have to
manually run cmake root in command prompt before continuing the build.<br>
<br>
My real project is far bigger than what I explain here, but I do not
know what I'm doing wrong. Can I override this custom build step ? Or
can I simply disable it ?<br>
<br>
Thank you,<br>
Ben.<br>
<br>
</blockquote>
<div><br>
</div>
<div>Regardless of which CMakeLists.txt file you edit, cmake always
re-runs from the root directory of the project. Is that what you mean?</div>
<div><br>
</div>
<div>Or are you running some custom build steps using
add_custom_command that are behaving differently than you expect?</div>
<div><br>
</div>
<div><br>
</div>
<div>HTH,</div>
<div>David</div>
<div> </div>
</div>
</blockquote>
</body>
</html>