1
0
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:
547557645@qq.com 2017-06-16 18:00:26 +08:00
parent 912cf2d81f
commit cc4fbe94da

View File

@ -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)