Fixed edge linking error under mingw (#492)

This commit is contained in:
vtcpip 2020-11-10 23:35:48 +08:00 committed by GitHub
parent 4581ae2859
commit a45676e131
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -117,17 +117,17 @@ add_library(n2n STATIC
src/n2n_regex.c
src/network_traffic_filter.c)
if(DEFINED WIN32)
add_library(edge_utils_win32 src/edge_utils_win32.c)
add_subdirectory(win32)
target_link_libraries(n2n edge_utils_win32 n2n_win32 )
endif(DEFINED WIN32)
if(N2N_OPTION_AES)
# target_link_libraries(n2n crypto)
target_link_libraries(n2n ${OPENSSL_LIBRARIES})
endif(N2N_OPTION_AES)
if(DEFINED WIN32)
add_library(edge_utils_win32 src/edge_utils_win32.c)
add_subdirectory(win32)
target_link_libraries(n2n edge_utils_win32 n2n_win32 )
endif(DEFINED WIN32)
add_executable(edge src/edge.c)
target_link_libraries(edge n2n)