mirror of
https://github.com/Tencent/libco.git
synced 2025-05-08 19:51:15 +08:00
fix undefined reference to dlsym
This commit is contained in:
parent
912cf2d81f
commit
cc4fbe94da
@ -41,7 +41,7 @@ set_target_properties(colib_shared PROPERTIES VERSION ${LIBCO_VERSION} SOVERSION
|
||||
# Macro for add example target
|
||||
macro(add_example_target EXAMPLE_TARGET)
|
||||
add_executable("example_${EXAMPLE_TARGET}" "example_${EXAMPLE_TARGET}.cpp")
|
||||
target_link_libraries("example_${EXAMPLE_TARGET}" colib_static pthread)
|
||||
target_link_libraries("example_${EXAMPLE_TARGET}" colib_static pthread dl)
|
||||
endmacro(add_example_target)
|
||||
|
||||
add_example_target(closure)
|
||||
|
Loading…
x
Reference in New Issue
Block a user