Skip to content

Commit 0876c39

Browse files
committed
refactor: change desktop binary name from main to led-matrix-desktop so there are no collusions when installing deb package
1 parent dc1f49d commit 0876c39

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ add_executable(${PROJECT_NAME}
123123
${SOURCES}
124124
)
125125
if(ENABLE_DESKTOP)
126+
set_target_properties(${PROJECT_NAME} PROPERTIES OUTPUT_NAME "led-matrix-desktop")
126127
if(NOT WIN32)
127128
find_package(PkgConfig REQUIRED) # Include functions provided by PkgConfig module.
128129

@@ -158,6 +159,8 @@ if(ENABLE_DESKTOP)
158159
PATTERN "*.pdb" EXCLUDE
159160
)
160161
endif()
162+
else()
163+
set_target_properties(${PROJECT_NAME} PROPERTIES OUTPUT_NAME "main")
161164
endif()
162165

163166
install(FILES

0 commit comments

Comments
 (0)