Basically I need something like
Code: Select all
#ifdef THERE_MUST_BE_AN_IDF_DEBUG_DEFINED_SOMEWHERE
#define FOO(x) { /* some stuf */ }
#else
#define FOO(x)
#endif
Code: Select all
#ifdef THERE_MUST_BE_AN_IDF_DEBUG_DEFINED_SOMEWHERE
#define FOO(x) { /* some stuf */ }
#else
#define FOO(x)
#endif
Code: Select all
add_library(foobar)
target_compile_definitions(foobar PRIVATE
$<$<CONFIG:Debug>:
FOOBAR_DEBUG=1
>
)
Code: Select all
#ifdef NDEBUG
Non-Debug...
#else
Debug...
#endif
Users browsing this forum: No registered users and 61 guests