Skip to content

Commit

Permalink
fixed regression bug with invalid nexus433.service
Browse files Browse the repository at this point in the history
  • Loading branch information
aquaticus committed Oct 20, 2022
1 parent 1eba32e commit 0d9cd1c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ add_custom_target(version
-P ${CMAKE_SOURCE_DIR}/version.cmake
)

# for nexus433.ini.example
set(NEXUS433_BIN_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/bin")
get_filename_component(NEXUS433_BINARY_PATH "${NEXUS433_BIN_INSTALL_DIR}/nexus433" ABSOLUTE)

configure_file(nexus433.ini.in nexus433.ini.example)
configure_file(board.h.in board.h)
configure_file(nexus433.service.in nexus433.service)
Expand All @@ -71,7 +75,7 @@ target_include_directories(nexus433 PRIVATE ${CMAKE_BINARY_DIR})
target_link_libraries (nexus433 ${LIBS})
target_compile_options(nexus433 PRIVATE "-Wall;-Wno-psabi" "$<$<CONFIG:DEBUG>:-O0;-g3;-ggdb;-DDEBUG>")

install(TARGETS nexus433 DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
install(TARGETS nexus433 DESTINATION ${NEXUS433_BIN_INSTALL_DIR})
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/nexus433.ini.example" DESTINATION "${INSTALL_INI_DIR}")
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/nexus433.service" DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/systemd/system/")

Expand Down

0 comments on commit 0d9cd1c

Please sign in to comment.