<div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div dir="auto"><div dir="auto"><br>I have a static library and two target executables, let's call them **libA**, **EXE1**, **EXE2**.</div><div dir="auto"><br></div><div dir="auto">If I am building EXE2, I need to disabled the macros in libA and don't link to another library.<br></div><div dir="auto">[...]</div><div dir="auto">I don't want to create two targets with same source files.</div></div></div></blockquote><div><br></div><div>I'm curious why you wanted two executable targets but not the corresponding two library targets, I don't think you said why. I would have thought you'd want A. either to be able to build both configurations at the same time, B. or one project configuration at a time. So why want A for executables but B for libraries? </div><div> </div></div></div>