From: Maksym Mamontov Date: Fri, 19 Aug 2022 20:18:10 +0000 (+0300) Subject: Fix XML-RPC module compilation on C++17-only compilers. X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/2741145e6eb219cb0ccb75e729b86f8fc2b499bb?ds=sidebyside Fix XML-RPC module compilation on C++17-only compilers. --- 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 )