]> git.stg.codes - stg.git/commitdiff
Fix XML-RPC module compilation on C++17-only compilers.
authorMaksym Mamontov <madf@madf.info>
Fri, 19 Aug 2022 20:18:10 +0000 (23:18 +0300)
committerMaksym Mamontov <madf@madf.info>
Fri, 19 Aug 2022 20:18:10 +0000 (23:18 +0300)
projects/stargazer/plugins/CMakeLists.txt

index e1e78e109174e4daf72d5d788288663ce214f439..a229cc5032d111c812db6a579072fe28e4e04c9c 100644 (file)
@@ -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 )