diff --git a/CMakeLists.txt b/CMakeLists.txt index 2b7c4b6..364eaa7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required (VERSION 3.5 FATAL_ERROR) project (node-manager-proxy CXX) -set (CMAKE_CXX_STANDARD 17) +set (CMAKE_CXX_STANDARD 20) set (CMAKE_CXX_STANDARD_REQUIRED ON) set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-rtti") set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fno-rtti") @@ -40,4 +40,4 @@ link_directories (${EXTERNAL_INSTALL_LOCATION}/lib) set (SERVICE_FILES ${PROJECT_SOURCE_DIR}/node-manager-proxy.service) install (TARGETS ${PROJECT_NAME} DESTINATION sbin) -install (FILES ${SERVICE_FILES} DESTINATION /lib/systemd/system/) +install (FILES ${SERVICE_FILES} DESTINATION /usr/lib/systemd/system/) diff --git a/NodeManagerProxy.cpp b/NodeManagerProxy.cpp index 54fa936..756bc45 100644 --- a/NodeManagerProxy.cpp +++ b/NodeManagerProxy.cpp @@ -183,6 +183,8 @@ void createAssociations() */ int main(int argc, char *argv[]) { + server.add_manager("/xyz/openbmc_project/sensors"); + conn->request_name(nmdBus); createSensors(); createAssociations(); diff --git a/NodeManagerProxy.hpp b/NodeManagerProxy.hpp index 15d4e97..bdeeafe 100644 --- a/NodeManagerProxy.hpp +++ b/NodeManagerProxy.hpp @@ -13,6 +13,7 @@ * limitations under the License. */ +#include #include #include #include