Skip to content

Commit b49b4d6

Browse files
committed
Set APPNAME directly
1 parent 66f7516 commit b49b4d6

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ else()
3535
set(SLIM_DEFINITIONS ${SLIM_DEFINITIONS} "-DHAVE_SHADOW")
3636
endif()
3737

38-
set(SLIM_DEFINITIONS ${SLIM_DEFINITIONS} "-DPACKAGE=\"slim\"")
38+
set(SLIM_DEFINITIONS ${SLIM_DEFINITIONS} "-DAPPNAME=\"${PROJECT_NAME}\"")
3939
set(SLIM_DEFINITIONS ${SLIM_DEFINITIONS} "-DVERSION=\"${SLIM_VERSION}\"")
4040
set(SLIM_DEFINITIONS ${SLIM_DEFINITIONS} "-DPKGDATADIR=\"${PKGDATADIR}\"")
4141
set(SLIM_DEFINITIONS ${SLIM_DEFINITIONS} "-DSYSCONFDIR=\"${SYSCONFDIR}\"")

const.h

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#ifndef _CONST_H_
1313
#define _CONST_H_
1414

15-
#define APPNAME "slim"
1615
#define DISPLAY ":0.0"
1716

1817
#define CONSOLE_STR "console"

0 commit comments

Comments
 (0)