]> git.stg.codes - stg.git/commitdiff
Fix XMLRPC.
authorMaksym Mamontov <madf@madf.info>
Mon, 24 Feb 2020 17:38:46 +0000 (19:38 +0200)
committerMaksym Mamontov <madf@madf.info>
Mon, 24 Feb 2020 17:38:46 +0000 (19:38 +0200)
stargazer/plugins/CMakeLists.txt

index 1d205898f9fa8a3c1fca14e2359b686232486e35..db9af11ca4a5afd0621023103b1c2841e2fb5a00 100644 (file)
@@ -76,6 +76,7 @@ endif ( BUILD_MOD_SGCONFIG )
 
 if ( BUILD_MOD_RPCCONFIG )
     find_package ( XMLRPC REQUIRED c++ abyss-server )
 
 if ( BUILD_MOD_RPCCONFIG )
     find_package ( XMLRPC REQUIRED c++ abyss-server )
+    include_directories ( ${XMLRPC_INCLUDE_DIRS} )
     add_library ( mod_conf_rpc MODULE configuration/rpcconfig/rpcconfig.cpp
                                       configuration/rpcconfig/user_helper.cpp
                                       configuration/rpcconfig/tariff_helper.cpp
     add_library ( mod_conf_rpc MODULE configuration/rpcconfig/rpcconfig.cpp
                                       configuration/rpcconfig/user_helper.cpp
                                       configuration/rpcconfig/tariff_helper.cpp
@@ -84,7 +85,7 @@ if ( BUILD_MOD_RPCCONFIG )
                                       configuration/rpcconfig/tariffs_methods.cpp
                                       configuration/rpcconfig/admins_methods.cpp
                                       configuration/rpcconfig/messages_methods.cpp )
                                       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_server_abyss++ )
+                              target_link_libraries ( mod_conf_rpc scriptexecuter logger common ${XMLRPC_LIBRARIES} )
     set_target_properties ( mod_conf_rpc PROPERTIES PREFIX "" )
 endif ( BUILD_MOD_RPCCONFIG )
 
     set_target_properties ( mod_conf_rpc PROPERTIES PREFIX "" )
 endif ( BUILD_MOD_RPCCONFIG )