build: Make sure LIBSSH_THREADS_LINK_LIBRARIES is in the cache.
Этот коммит содержится в:
родитель
697d51cd93
Коммит
d2f38da094
@ -27,11 +27,6 @@ set(LIBSSH_THREADS_LINK_LIBRARIES
|
|||||||
${LIBSSH_SHARED_LIBRARY}
|
${LIBSSH_SHARED_LIBRARY}
|
||||||
)
|
)
|
||||||
|
|
||||||
set(LIBSSH_THREADS_LINK_LIBRARIES
|
|
||||||
${LIBSSH_THREADS_LINK_LIBRARIES}
|
|
||||||
CACHE INTERNAL "libssh threads link libraries"
|
|
||||||
)
|
|
||||||
|
|
||||||
set(libssh_threads_SRCS
|
set(libssh_threads_SRCS
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -48,11 +43,18 @@ if (CMAKE_HAVE_PTHREADS_CREATE OR CMAKE_HAVE_PTHREAD_CREATE)
|
|||||||
)
|
)
|
||||||
endif (CMAKE_HAVE_PTHREADS_CREATE OR CMAKE_HAVE_PTHREAD_CREATE)
|
endif (CMAKE_HAVE_PTHREADS_CREATE OR CMAKE_HAVE_PTHREAD_CREATE)
|
||||||
|
|
||||||
|
set(LIBSSH_THREADS_LINK_LIBRARIES
|
||||||
|
${LIBSSH_THREADS_LINK_LIBRARIES}
|
||||||
|
CACHE INTERNAL "libssh threads link libraries"
|
||||||
|
)
|
||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
${LIBSSH_THREADS_PUBLIC_INCLUDE_DIRS}
|
${LIBSSH_THREADS_PUBLIC_INCLUDE_DIRS}
|
||||||
${LIBSSH_THREADS_PRIVATE_INCLUDE_DIRS}
|
${LIBSSH_THREADS_PRIVATE_INCLUDE_DIRS}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
message(STATUS "ASN: LIBSSH_THREADS_LINK_LIBRARIES: ${LIBSSH_THREADS_LINK_LIBRARIES}")
|
||||||
|
|
||||||
add_library(${LIBSSH_THREADS_SHARED_LIBRARY} SHARED ${libssh_threads_SRCS})
|
add_library(${LIBSSH_THREADS_SHARED_LIBRARY} SHARED ${libssh_threads_SRCS})
|
||||||
|
|
||||||
target_link_libraries(${LIBSSH_THREADS_SHARED_LIBRARY} ${LIBSSH_THREADS_LINK_LIBRARIES})
|
target_link_libraries(${LIBSSH_THREADS_SHARED_LIBRARY} ${LIBSSH_THREADS_LINK_LIBRARIES})
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user