summary refs log tree commit diff
path: root/cmake
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-09-30 14:33:54 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-09-30 14:33:54 +0300
commit4b1b0623887c24f45257c409ce332af9b765b50d (patch)
treef299367542d90eaa869a5e5010f1ac2dbfc81136 /cmake
parentChange the minimum width for modals (diff)
downloadnheko-4b1b0623887c24f45257c409ce332af9b765b50d.tar.xz
Enable debug logs
Diffstat (limited to 'cmake')
-rw-r--r--cmake/nheko.h6
-rw-r--r--cmake/version.h5
2 files changed, 6 insertions, 5 deletions
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}";
-}