fix linux linker error
This commit is contained in:
		| @@ -8,7 +8,7 @@ | |||||||
|  |  | ||||||
| #include "IXNetSystem.h" | #include "IXNetSystem.h" | ||||||
| #include <sstream> | #include <sstream> | ||||||
| #include <strings.h> | #include <cstring> | ||||||
|  |  | ||||||
| namespace ix | namespace ix | ||||||
| { | { | ||||||
|   | |||||||
| @@ -96,13 +96,14 @@ if (JSONCPP_FOUND) | |||||||
|   target_link_libraries(ixwebsocket_unittest ${JSONCPP_LIBRARIES}) |   target_link_libraries(ixwebsocket_unittest ${JSONCPP_LIBRARIES}) | ||||||
| endif() | endif() | ||||||
|  |  | ||||||
|  | # library with the most dependencies come first | ||||||
|  | target_link_libraries(ixwebsocket_unittest ixbots) | ||||||
| target_link_libraries(ixwebsocket_unittest ixsnake) | target_link_libraries(ixwebsocket_unittest ixsnake) | ||||||
| target_link_libraries(ixwebsocket_unittest ixcobra) | target_link_libraries(ixwebsocket_unittest ixcobra) | ||||||
|  | target_link_libraries(ixwebsocket_unittest ixsentry) | ||||||
| target_link_libraries(ixwebsocket_unittest ixwebsocket) | target_link_libraries(ixwebsocket_unittest ixwebsocket) | ||||||
| target_link_libraries(ixwebsocket_unittest ixcrypto) | target_link_libraries(ixwebsocket_unittest ixcrypto) | ||||||
| target_link_libraries(ixwebsocket_unittest ixcore) | target_link_libraries(ixwebsocket_unittest ixcore) | ||||||
| target_link_libraries(ixwebsocket_unittest ixsentry) |  | ||||||
| target_link_libraries(ixwebsocket_unittest ixbots) |  | ||||||
|  |  | ||||||
| target_link_libraries(ixwebsocket_unittest spdlog) | target_link_libraries(ixwebsocket_unittest spdlog) | ||||||
|  |  | ||||||
|   | |||||||
| @@ -60,13 +60,14 @@ add_executable(ws | |||||||
|   ws_dns_lookup.cpp |   ws_dns_lookup.cpp | ||||||
|   ws.cpp) |   ws.cpp) | ||||||
|  |  | ||||||
|  | # library with the most dependencies come first | ||||||
|  | target_link_libraries(ws ixbots) | ||||||
| target_link_libraries(ws ixsnake) | target_link_libraries(ws ixsnake) | ||||||
| target_link_libraries(ws ixcobra) | target_link_libraries(ws ixcobra) | ||||||
|  | target_link_libraries(ws ixsentry) | ||||||
| target_link_libraries(ws ixwebsocket) | target_link_libraries(ws ixwebsocket) | ||||||
| target_link_libraries(ws ixcrypto) | target_link_libraries(ws ixcrypto) | ||||||
| target_link_libraries(ws ixcore) | target_link_libraries(ws ixcore) | ||||||
| target_link_libraries(ws ixsentry) |  | ||||||
| target_link_libraries(ws ixbots) |  | ||||||
|  |  | ||||||
| target_link_libraries(ws spdlog) | target_link_libraries(ws spdlog) | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user