fix linux compilation error, by ordering dependant libraries properly
This commit is contained in:
		| @@ -77,10 +77,10 @@ if (APPLE AND USE_TLS) | |||||||
|   target_link_libraries(ixwebsocket_unittest "-framework foundation" "-framework security") |   target_link_libraries(ixwebsocket_unittest "-framework foundation" "-framework security") | ||||||
| endif() | endif() | ||||||
|  |  | ||||||
| target_link_libraries(ixwebsocket_unittest ixcore) | target_link_libraries(ixwebsocket_unittest ixsnake) | ||||||
| target_link_libraries(ixwebsocket_unittest ixcrypto) |  | ||||||
| target_link_libraries(ixwebsocket_unittest ixcobra) | target_link_libraries(ixwebsocket_unittest ixcobra) | ||||||
| target_link_libraries(ixwebsocket_unittest ixwebsocket) | target_link_libraries(ixwebsocket_unittest ixwebsocket) | ||||||
| target_link_libraries(ixwebsocket_unittest ixsnake) | target_link_libraries(ixwebsocket_unittest ixcrypto) | ||||||
|  | target_link_libraries(ixwebsocket_unittest ixcore) | ||||||
|  |  | ||||||
| install(TARGETS ixwebsocket_unittest DESTINATION bin) | install(TARGETS ixwebsocket_unittest DESTINATION bin) | ||||||
|   | |||||||
| @@ -57,11 +57,11 @@ add_executable(ws | |||||||
|   ws_autobahn.cpp |   ws_autobahn.cpp | ||||||
|   ws.cpp) |   ws.cpp) | ||||||
|  |  | ||||||
| target_link_libraries(ws ixcore) | target_link_libraries(ws ixsnake) | ||||||
| target_link_libraries(ws ixcrypto) |  | ||||||
| target_link_libraries(ws ixcobra) | target_link_libraries(ws ixcobra) | ||||||
| target_link_libraries(ws ixwebsocket) | target_link_libraries(ws ixwebsocket) | ||||||
| target_link_libraries(ws ixsnake) | target_link_libraries(ws ixcrypto) | ||||||
|  | target_link_libraries(ws ixcore) | ||||||
|  |  | ||||||
| if(NOT APPLE AND NOT USE_MBED_TLS) | if(NOT APPLE AND NOT USE_MBED_TLS) | ||||||
|   find_package(OpenSSL REQUIRED) |   find_package(OpenSSL REQUIRED) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user