From 2741145e6eb219cb0ccb75e729b86f8fc2b499bb Mon Sep 17 00:00:00 2001 From: Maksym Mamontov Date: Fri, 19 Aug 2022 23:18:10 +0300 Subject: [PATCH] Fix XML-RPC module compilation on C++17-only compilers. --- projects/stargazer/plugins/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/stargazer/plugins/CMakeLists.txt b/projects/stargazer/plugins/CMakeLists.txt index e1e78e10..a229cc50 100644 --- a/projects/stargazer/plugins/CMakeLists.txt +++ b/projects/stargazer/plugins/CMakeLists.txt @@ -148,7 +148,8 @@ if ( BUILD_MOD_RPCCONFIG ) configuration/rpcconfig/tariffs_methods.cpp configuration/rpcconfig/admins_methods.cpp configuration/rpcconfig/messages_methods.cpp ) - target_link_libraries ( mod_conf_rpc scriptexecuter logger common ${XMLRPC_LIBRARIES} ) + target_link_libraries ( mod_conf_rpc scriptexecuter logger common ${XMLRPC_LIBRARIES} ) + target_compile_definitions ( mod_conf_rpc PUBLIC auto_ptr=unique_ptr ) set_target_properties ( mod_conf_rpc PROPERTIES PREFIX "" ) if ( CLANG_TIDY_EXE ) -- 2.44.2