Don Reba
Don Reba

Reputation: 14051

How to remove a VS command line switch

When I set additional compiler options for a project in Visual Studio 2008, they propagate to all files. If I then set additional options for a specific file, they are added to the project's command line and additional options. How can I compile an individual file without the project-wide options?

Upvotes: 0

Views: 220

Answers (1)

rlduffy
rlduffy

Reputation: 618

It looks like your problem is that there's no way to negate /callcap for the one source file where you don't want it. Ugly as it is, you could always place that one source file into a separate static library.

Upvotes: 1

Related Questions