Merge pull request #1036 from 1715173329/cap

build(CMakeLists): dynamic link to libcap by default
This commit is contained in:
Hamish Coleman 2022-07-09 01:17:03 +01:00 committed by GitHub
commit a94e56203d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -238,8 +238,7 @@ if(N2N_OPTION_USE_ZSTD)
endif(N2N_OPTION_USE_ZSTD) endif(N2N_OPTION_USE_ZSTD)
if(N2N_OPTION_USE_CAPLIB) if(N2N_OPTION_USE_CAPLIB)
# TODO: this is a static library, shouldnt we have a generic one? target_link_libraries(edge cap)
target_link_libraries(edge cap.a)
endif(N2N_OPTION_USE_CAPLIB) endif(N2N_OPTION_USE_CAPLIB)
if(N2N_OPTION_USE_PORTMAPPING) if(N2N_OPTION_USE_PORTMAPPING)