Browse Source

build(CMakeLists): dynamic link to libcap by default

This is a only exception while all other libraries are dynamically
linked.

The "TODO" does not make any sense as libcap provides both dynamic
and static libraries.

There is not reason to explain why it needs to be statically linked
'especially' as dynamic linking works very well.

Then just make it dynamically-linked by default, which also matches
the behaviour on autotools.

Compiled and tested on aarch64, no errors found.

Signed-off-by: Tianling Shen <i@cnsztl.eu.org>
pull/1036/head
Tianling Shen 2 years ago
parent
commit
7c7072ff7c
No known key found for this signature in database GPG Key ID: 6850B6345C862176
  1. 3
      CMakeLists.txt

3
CMakeLists.txt

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

Loading…
Cancel
Save