문제

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.

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top