From 4b1b0623887c24f45257c409ce332af9b765b50d Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Sun, 30 Sep 2018 14:33:54 +0300 Subject: Enable debug logs --- cmake/nheko.h | 6 ++++++ cmake/version.h | 5 ----- 2 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 cmake/nheko.h delete mode 100644 cmake/version.h (limited to 'cmake') diff --git a/cmake/nheko.h b/cmake/nheko.h new file mode 100644 index 00000000..bf1a54fe --- /dev/null +++ b/cmake/nheko.h @@ -0,0 +1,6 @@ +namespace nheko { +constexpr auto version = "${PROJECT_VERSION}"; +constexpr auto build_user = "${BUILD_USER}@${BUILD_HOST}"; +constexpr auto build_os = "${CMAKE_HOST_SYSTEM_NAME}"; +constexpr auto enable_debug_log = ${SPDLOG_DEBUG_ON}; +} diff --git a/cmake/version.h b/cmake/version.h deleted file mode 100644 index 204bc895..00000000 --- a/cmake/version.h +++ /dev/null @@ -1,5 +0,0 @@ -namespace nheko { -static constexpr const char *version = "${PROJECT_VERSION}"; -static constexpr const char *build_user = "${BUILD_USER}@${BUILD_HOST}"; -static constexpr const char *build_os = "${CMAKE_HOST_SYSTEM_NAME}"; -} -- cgit 1.4.1