mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Be compatible with cmake 3.1
This commit is contained in:
parent
f77a103209
commit
8a2b29a3bf
3 changed files with 2 additions and 3 deletions
|
@ -103,7 +103,6 @@ set(PROJECT_VERSION ${CPACK_PACKAGE_VERSION})
|
||||||
message(STATUS "Version: ${PROJECT_VERSION}")
|
message(STATUS "Version: ${PROJECT_VERSION}")
|
||||||
|
|
||||||
cmake_host_system_information(RESULT BUILD_HOST QUERY HOSTNAME)
|
cmake_host_system_information(RESULT BUILD_HOST QUERY HOSTNAME)
|
||||||
cmake_host_system_information(RESULT BUILD_OS QUERY OS_NAME)
|
|
||||||
set(BUILD_USER $ENV{USER})
|
set(BUILD_USER $ENV{USER})
|
||||||
configure_file(cmake/version.hpp config/version.hpp)
|
configure_file(cmake/version.hpp config/version.hpp)
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
namespace nheko {
|
namespace nheko {
|
||||||
static constexpr const char *version = "${PROJECT_VERSION}";
|
static constexpr const char *version = "${PROJECT_VERSION}";
|
||||||
static constexpr const char *build_user = "${BUILD_USER}@${BUILD_HOST}";
|
static constexpr const char *build_user = "${BUILD_USER}@${BUILD_HOST}";
|
||||||
static constexpr const char *build_os = "${BUILD_OS}";
|
static constexpr const char *build_os = "${CMAKE_HOST_SYSTEM_NAME}";
|
||||||
}
|
}
|
||||||
|
|
|
@ -58,7 +58,7 @@ namespace roomlist {
|
||||||
namespace fonts {
|
namespace fonts {
|
||||||
static constexpr int heading = 13;
|
static constexpr int heading = 13;
|
||||||
static constexpr int timestamp = heading;
|
static constexpr int timestamp = heading;
|
||||||
static constexpr int badge = 9;
|
static constexpr int badge = 10;
|
||||||
static constexpr int bubble = 20;
|
static constexpr int bubble = 20;
|
||||||
} // namespace fonts
|
} // namespace fonts
|
||||||
} // namespace roomlist
|
} // namespace roomlist
|
||||||
|
|
Loading…
Reference in a new issue