It is best to achieve this behavior by using #ifdef blocks to distinguish between debug and release code.
As a last resort, you can #ifdef a #include line of code that selectively includes other files.
I donβt know the normal way to dynamically change .cpp files compiled in a project based on assembly type.
source share