YAML CPP: Improve logging code
@@ -12,6 +12,10 @@ if (DEPENDENCY_PHASE)
if (APPLE AND CMAKE_COMPILER_IS_GNUCXX)
string (REPLACE "-Wshadow" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
endif (APPLE AND CMAKE_COMPILER_IS_GNUCXX)
+
+ if (HAVE_LOGGER)
+ add_definitions (-DLOGGING_ENABLED)
+ endif (HAVE_LOGGER)
endif (NOT YAML-CPP_FOUND)
endif (DEPENDENCY_PHASE)
