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: Bing [Bot], Majestic-12 [Bot] and 70 guests