c++visual-studioincludepragma

Is there a pragma directive for include directories?


As the title says: Is there a pragma directive for include directories using VS20** C++? I think about something like:

#pragma comment(include, "..\externals\blah\includes\")

So that I can use includes in this style, and blah.h also can use this style inside?

#include <blah.h>

I know that I can set include directories in my project settings, but I am asking for a preprocessor directive, because else i would have to set it for every compiler profile.

Regards Nem


Solution

  • I don't think there's any way to do this. include_alias is only useful on a file-by-file basis.