Domanda

I am using CDT for building a system comprised of many projects. Some of the system elements are dependent on the Configuration type - Debug or Release.

I am aware that there is nothing utterly special in these names, and that I can define my own configurations. However, since these two are built-in, is there a predefined macro to tell if the active configuration is one or the other?

Because there are many projects in the system, adding a _DEBUG_, _RELEASE_ symbols to each is somewhat tedious.

È stato utile?

Soluzione

Such macro would have to be passed to the compiler. There is no such macro in the generated makefiles.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top