When gSystem->ChangeDirectory() is used during the execution of a program to move to a different directory, the subsequent attempts to locate header files will fail. This is even the case when the proper folder to the header file(s) is set via ROOT_INCLUDE_PATH env variable.
Attached is a simple reproducer project:
-> this works
-> this fails