-
Notifications
You must be signed in to change notification settings - Fork 20
Building a target under certain circumstances #70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It's not really possible to not build something by default in a MSVS solution, to the best of my knowledge, so I don't think you can do it. You can, of course, only build something for a particular toolset and so not build it at all for "gnu" for example. So maybe you could use a condition involving a variable defined to some non-default value in "gnu" case, e.g. as explained here? |
@vadz Is there an example of that or something? Or was the |
Yes, it was -- except I gave a |
@vadz Well, that's weird... :O The use case is that a file should only be built if Boost is present. I figured that I could just conditionally define the target via a Side note: in VS toolsets, is it possible to test configurations like:
I'm guessing it's possible with the GNU ones, but I'm not sure about Visual Studio. |
I have a situation where there are some targets in a Bakefile that should NOT be built by default. Any way to make it build will work, but I just need some way of having the target NOT be built by default. How should I do this?
The text was updated successfully, but these errors were encountered: