We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d47589 commit 296ff38Copy full SHA for 296ff38
src/libmongoc/CMakeLists.txt
@@ -351,7 +351,11 @@ set (MONGOC_CC ${CMAKE_C_COMPILER})
351
set (MONGOC_USER_SET_CFLAGS ${CMAKE_C_FLAGS})
352
set (MONGOC_USER_SET_LDFLAGS ${CMAKE_EXE_LINKER_FLAGS})
353
354
-set (MONGOC_TRACE "${ENABLE_TRACING}")
+if (ENABLE_TRACING)
355
+ set (MONGOC_TRACE 1)
356
+else ()
357
+ set (MONGOC_TRACE 0)
358
+endif ()
359
360
# Sets SNAPPY_LIBRARIES and SNAPPY_INCLUDE_DIRS.
361
include (FindSnappy)
src/libmongoc/src/mongoc/mongoc-config.h.in
@@ -366,7 +366,7 @@
366
* Set if tracing is enabled. Logs things like network communication and
367
* entry/exit of certain functions.
368
*/
369
-#cmakedefine01 MONGOC_TRACE
+#define MONGOC_TRACE @MONGOC_TRACE@
370
371
enum {
372
/**
0 commit comments