I have a framework which I only want to link under Debug configuration, i.e., I have to make sure it is not linked under Release configuration. How can I do that?
By default, Debug includes debug information in the compiled files (allowing easy debugging) while Release usually has optimizations enabled. As far as conditional compilation goes, they each define different symbols that can be checked in your program, but they are language-specific macros.
Visual Studio projects have separate release and debug configurations for your program. You build the debug version for debugging and the release version for the final release distribution. In debug configuration, your program compiles with full symbolic debug information and no optimization.
A Debug configuration supports the debugging of an app, and a Release configuration builds a version of the app that can be deployed.
no need for to targets or any ifdef stuff.
linker flags
for the config onlyworks for static libs and dylibs and also frameworks
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With