refactor(build): Remove version number namespace
I don't know the original intention behind this but it clutters up debug traces and basically makes ccache useless. The only benefit it has, giving version info in stacktraces, is kind of void since we already ask for version information on github issues.
This commit is contained in:
parent
cb75857ff6
commit
e1e28f09f3
@ -40,8 +40,6 @@ else()
|
|||||||
set(APP_VERSION "${version_txt}")
|
set(APP_VERSION "${version_txt}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
STRING(REGEX REPLACE "[^a-zA-Z0-9_]" "_" APP_VERSION_NAMESPACE "v${APP_VERSION}")
|
|
||||||
|
|
||||||
set(CMAKE_MODULE_PATH
|
set(CMAKE_MODULE_PATH
|
||||||
${CMAKE_MODULE_PATH}
|
${CMAKE_MODULE_PATH}
|
||||||
${PROJECT_SOURCE_DIR}/cmake
|
${PROJECT_SOURCE_DIR}/cmake
|
||||||
|
@ -8,10 +8,8 @@
|
|||||||
#include "settings.hpp"
|
#include "settings.hpp"
|
||||||
|
|
||||||
#define POLYBAR_NS \
|
#define POLYBAR_NS \
|
||||||
namespace polybar { \
|
namespace polybar {
|
||||||
inline namespace APP_VERSION_NAMESPACE {
|
|
||||||
#define POLYBAR_NS_END \
|
#define POLYBAR_NS_END \
|
||||||
} \
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef PIPE_READ
|
#ifndef PIPE_READ
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
|
|
||||||
#define APP_NAME "@PROJECT_NAME@"
|
#define APP_NAME "@PROJECT_NAME@"
|
||||||
#cmakedefine APP_VERSION "@APP_VERSION@"
|
#cmakedefine APP_VERSION "@APP_VERSION@"
|
||||||
#cmakedefine APP_VERSION_NAMESPACE @APP_VERSION_NAMESPACE@
|
|
||||||
|
|
||||||
#cmakedefine01 ENABLE_ALSA
|
#cmakedefine01 ENABLE_ALSA
|
||||||
#cmakedefine01 ENABLE_MPD
|
#cmakedefine01 ENABLE_MPD
|
||||||
|
Loading…
Reference in New Issue
Block a user