Ignore include directory in Release mode  
Author Message
b1ad3runn3r





PostPosted: Visual C++ General, Ignore include directory in Release mode Top

I'd like to ignore some specific files included in a project in release mode. I've already used #ifdef _DEBUG, but that still creates library objects for all those files in the Release folder when it builds. I'd like to completely stop it from reading those... Is it possible, or is there a better way

I have cppunit included in my project, so i created a large number of test fixture classes, that I essentially dont want to build. It chocks up my Release folder with X.lib, X_test.lib, Y.lib, Y_test.lib etc etc etc. If it didn't build those classes I would be berry happy...


Visual C++16  
 
 
Mike Danes





PostPosted: Visual C++ General, Ignore include directory in Release mode Top

If you want to skip a cpp file from building right click that file in solution explorer, select Properties, General, set Excluded From Build to Yes (make sure that the selected configuration is Release).

If you want to skip a whole project from build then right click the solution, go to Properties, Configuration Properties and here you have a list of projects if a Build checkbox column. Uncheck the project what you don't need (also make sure your current configuration is Release).