m & pthread?
This commit is contained in:
parent
93068241d3
commit
56466a446a
@ -128,9 +128,10 @@ if (HAVE_LIBANDROID)
|
|||||||
set(EXTRALIBS ${EXTRALIBS} android)
|
set(EXTRALIBS ${EXTRALIBS} android)
|
||||||
endif (HAVE_LIBANDROID)
|
endif (HAVE_LIBANDROID)
|
||||||
|
|
||||||
check_library_exists(m main "" HAVE_LIBM)
|
find_library(HAVE_LIBM m)
|
||||||
if (HAVE_LIBM)
|
if (HAVE_LIBM)
|
||||||
set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} m)
|
target_link_libraries(libYap m)
|
||||||
|
set(EXTRALIBS ${EXTRALIBS} m)
|
||||||
endif (HAVE_LIBM)
|
endif (HAVE_LIBM)
|
||||||
|
|
||||||
check_library_exists(dl dlopen "" HAVE_LIBDL)
|
check_library_exists(dl dlopen "" HAVE_LIBDL)
|
||||||
@ -207,10 +208,11 @@ endif (HAVE_LIBLOG)
|
|||||||
# endif (HAVE_LIBSOCKET)
|
# endif (HAVE_LIBSOCKET)
|
||||||
|
|
||||||
|
|
||||||
check_library_exists(upthread main "" HAVE_LIBPTHREAD)
|
find_library(HAVE_LIBPTHREAD pthread)
|
||||||
if (HAVE_LIBPTHREAD)
|
if (HAVE_LIBPTHREAD)
|
||||||
set( EXTRALIBS ${EXTRALIBS} pthread)
|
target_link_libraries(libYap pthread)
|
||||||
endif (HAVE_LIBPTHREAD)
|
set(EXTRALIBS ${EXTRALIBS} pthread)
|
||||||
|
endif (HAVE_LIBPTHREAD)
|
||||||
|
|
||||||
|
|
||||||
check_library_exists(unicode main "" HAVE_LIBUNICODE)
|
check_library_exists(unicode main "" HAVE_LIBUNICODE)
|
||||||
|
Reference in New Issue
Block a user