title: How to tell if current project is dll or static lib?
body: <p>In a header I'd like to <code>#pragma comment lib</code> to the correct lib file depending upon whether the project including the header and being built is a dll or staticLib project.</p>
  
  <p>Are there any predefined preprocessor variables I can #if on to work it out?</p>
  
  <p>I've seen that <code>_DLL</code> can be used to see if the static or dynamic CRT is being used here: <a href="https://msdn.microsoft.com/en-us/library/b0084kay.aspx?f=255&amp;MSPPError=-2147217396" rel="nofollow">https://msdn.microsoft.com/en-us/library/b0084kay.aspx?f=255&amp;MSPPError=-2147217396</a></p>